From 074f9a2cab58172a43caf6966648e947e35daa22 Mon Sep 17 00:00:00 2001 From: alestiago Date: Fri, 6 May 2022 04:41:22 +0100 Subject: [PATCH] test: waited loading ScoreBehavior --- test/game/behaviors/scoring_behavior_test.dart | 2 ++ 1 file changed, 2 insertions(+) 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);