diff --git a/test/game/behaviors/scoring_behavior_test.dart b/test/game/behaviors/scoring_behavior_test.dart index 0207eb07..ef3f10ca 100644 --- a/test/game/behaviors/scoring_behavior_test.dart +++ b/test/game/behaviors/scoring_behavior_test.dart @@ -172,6 +172,7 @@ void main() { flameBlocTester.testGameWidget( 'beginContact adds a ScoringBehavior', setUp: (game, tester) async { + await game.onLoad(); await game.pump(parent); final behavior = ScoringContactBehavior(points: Points.oneMillion); @@ -190,6 +191,7 @@ void main() { flameBlocTester.testGameWidget( "beginContact positions text at contact's position", setUp: (game, tester) async { + await game.onLoad(); await game.pump(parent); final behavior = ScoringContactBehavior(points: Points.oneMillion);