diff --git a/test/win32_gui_test.dart b/test/win32_gui_test.dart index b8efa4a..e609036 100644 --- a/test/win32_gui_test.dart +++ b/test/win32_gui_test.dart @@ -50,15 +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), () { print('** Forcing exit(0).'); exit(0); }); + + mainWindow.quit(0); + + print('-- Test finished.'); }); }