Skip to content

Commit

Permalink
Fix flaky file chooser test
Browse files Browse the repository at this point in the history
Fixes #75
  • Loading branch information
robert-ancell committed Aug 31, 2022
1 parent 886b9e0 commit b9dfa1a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/xdg_desktop_portal_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1989,8 +1989,7 @@ void main() {
await portalServer.close();
});

var busClient = DBusClient(clientAddress);
var client = XdgDesktopPortalClient(bus: busClient);
var client = XdgDesktopPortalClient(bus: DBusClient(clientAddress));
addTearDown(() async {
await client.close();
});
Expand All @@ -1999,7 +1998,7 @@ void main() {
var subscription = stream.listen(expectAsync1((result) {}, count: 0));

// Ensure that the session has been created and then check for it.
await busClient.ping();
await client.fileChooser.getVersion();
expect(portalServer.openFileDialogs, hasLength(1));

// Ensure the dialog is removed when the request is cancelled.
Expand Down

0 comments on commit b9dfa1a

Please sign in to comment.