From 528aeb3c04e3ebb614a77c2d6bc7e5411870f0cc Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Thu, 24 Aug 2023 10:53:16 -0500 Subject: [PATCH] fix(e2e): make assertions resilient against multiple apps --- .../shorebird_cli_integration_test.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/shorebird_cli/integration_test/shorebird_cli_integration_test.dart b/packages/shorebird_cli/integration_test/shorebird_cli_integration_test.dart index 670e92f0..ac22e74e 100644 --- a/packages/shorebird_cli/integration_test/shorebird_cli_integration_test.dart +++ b/packages/shorebird_cli/integration_test/shorebird_cli_integration_test.dart @@ -99,7 +99,7 @@ void main() { await expectLater( runWithOverrides(client.getApps), completion( - equals([ + contains( isA() .having( (a) => a.appId, @@ -116,7 +116,7 @@ void main() { 'latestPatchNumber', null, ), - ]), + ), ), ); @@ -133,7 +133,7 @@ void main() { await expectLater( runWithOverrides(client.getApps), completion( - equals([ + contains( isA() .having( (a) => a.appId, @@ -150,7 +150,7 @@ void main() { 'latestPatchNumber', null, ), - ]), + ), ), ); @@ -167,7 +167,7 @@ void main() { await expectLater( runWithOverrides(client.getApps), completion( - equals([ + contains( isA() .having( (a) => a.appId, @@ -184,7 +184,7 @@ void main() { 'latestPatchNumber', 1, ), - ]), + ), ), );