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 b6017b5 commit 372e704
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/win32_gui_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@TestOn('windows')
import 'dart:io';

import 'package:test/test.dart';
import 'package:win32_gui/win32_gui.dart';
import 'package:win32_gui/win32_gui_logging.dart';
Expand Down Expand Up @@ -47,6 +49,9 @@ void main() {

print('-- Checking `mainWindow.isDestroyed`');
expect(mainWindow.isDestroyed, isTrue);

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

Expand Down

0 comments on commit 372e704

Please sign in to comment.