Skip to content

Commit

Permalink
win32_gui_test.dart: adjust for test exe
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpassos committed Aug 7, 2023
1 parent 372e704 commit 727ed45
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/win32_gui_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,15 @@ void main() {
print('-- Checking `mainWindow.isDestroyed`');
expect(mainWindow.isDestroyed, isTrue);

mainWindow.quit(0);

print('-- Test finished.');

// Ensure that the `test -c exe` exits:
Future.delayed(Duration(seconds: 15), () => exit(0));
Future.delayed(Duration(seconds: 15), () {
print('** Forcing exit(0).');
exit(0);
});
});
}

Expand Down

0 comments on commit 727ed45

Please sign in to comment.