diff --git a/lib/game/components/android_acres/android_acres.dart b/lib/game/components/android_acres/android_acres.dart index cfaf7c7a..fd59ace3 100644 --- a/lib/game/components/android_acres/android_acres.dart +++ b/lib/game/components/android_acres/android_acres.dart @@ -47,6 +47,7 @@ class AndroidAcres extends Component { AndroidBumper.cow( children: [ ScoringContactBehavior(points: Points.twentyThousand), + BumperNoiseBehavior(), CowBumperNoiseBehavior(), ], )..initialPosition = Vector2(-20.7, -13), diff --git a/test/game/components/android_acres/android_acres_test.dart b/test/game/components/android_acres/android_acres_test.dart index 6015043f..5c750818 100644 --- a/test/game/components/android_acres/android_acres_test.dart +++ b/test/game/components/android_acres/android_acres_test.dart @@ -117,18 +117,16 @@ void main() { ); flameTester.test( - 'two AndroidBumpers with BumperNoiseBehavior', + 'three AndroidBumpers with BumperNoiseBehavior', (game) async { await game.pump(AndroidAcres()); final bumpers = game.descendants().whereType(); - var behaviorCount = 0; for (final bumper in bumpers) { - if (bumper.firstChild() != null) { - behaviorCount++; - } + expect( + bumper.firstChild(), + isA(), + ); } - - expect(behaviorCount, equals(2)); }, );