Skip to content

Commit

Permalink
fix future handling on end simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorbel1 committed Feb 26, 2024
1 parent 18b0c1b commit ff07021
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/pending_driver_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void main() {
group('end of test empty check', () {
test('not empty at end of test fails', () async {
// end the test prematurely
Simulator.registerAction(200, Simulator.endSimulation);
Simulator.registerAction(200, () => unawaited(Simulator.endSimulation()));

final myTest = MyTest(clk: clk!)..printLevel = Level.OFF;
try {
Expand All @@ -152,7 +152,7 @@ void main() {

test('disable end of test empty check', () async {
// end the test prematurely
Simulator.registerAction(200, Simulator.endSimulation);
Simulator.registerAction(200, () => unawaited(Simulator.endSimulation()));

final myTest = MyTest(
clk: clk!,
Expand Down
2 changes: 1 addition & 1 deletion test/test_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ForeverObjectionTest extends Test {
unawaited(super.run(phase));
phase.raiseObjection('objectionNeverCloses');
SimpleClockGenerator(10);
Simulator.registerAction(100, Simulator.endSimulation);
Simulator.registerAction(100, () => unawaited(Simulator.endSimulation()));
}
}

Expand Down

0 comments on commit ff07021

Please sign in to comment.