Skip to content

Commit

Permalink
chore: more
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed May 6, 2024
1 parent 0d26b2d commit fc3ad70
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frb_example/pure_dart/test/api/event_listener_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Future<void> main({bool skipRustLibInit = false}) async {

await closeEventListenerTwinNormal();

await Future.delayed(const Duration(seconds: 1));

expect(logs, ['one', 'two']);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Future<void> main({bool skipRustLibInit = false}) async {

await closeEventListenerTwinRustAsyncSse();

await Future.delayed(const Duration(seconds: 1));

expect(logs, ['one', 'two']);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Future<void> main({bool skipRustLibInit = false}) async {

await closeEventListenerTwinRustAsync();

await Future.delayed(const Duration(seconds: 1));

expect(logs, ['one', 'two']);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Future<void> main({bool skipRustLibInit = false}) async {

await closeEventListenerTwinSse();

await Future.delayed(const Duration(seconds: 1));

expect(logs, ['one', 'two']);
});
}
2 changes: 2 additions & 0 deletions frb_example/pure_dart_pde/test/api/event_listener_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Future<void> main({bool skipRustLibInit = false}) async {

await closeEventListenerTwinNormal();

await Future.delayed(const Duration(seconds: 1));

expect(logs, ['one', 'two']);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Future<void> main({bool skipRustLibInit = false}) async {

await closeEventListenerTwinRustAsync();

await Future.delayed(const Duration(seconds: 1));

expect(logs, ['one', 'two']);
});
}

0 comments on commit fc3ad70

Please sign in to comment.