diff --git a/packages/shorebird_cli/test/src/commands/patch_command_test.dart b/packages/shorebird_cli/test/src/commands/patch_command_test.dart index 010a9c8ec..81811aa74 100644 --- a/packages/shorebird_cli/test/src/commands/patch_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch_command_test.dart @@ -238,7 +238,7 @@ flutter: }); when( () => shorebirdProcess.run( - 'java', + any(that: contains('java')), any(), runInShell: any(named: 'runInShell'), environment: any(named: 'environment'), diff --git a/packages/shorebird_cli/test/src/commands/release/release_android_command_test.dart b/packages/shorebird_cli/test/src/commands/release/release_android_command_test.dart index 48577c998..c48a9d36f 100644 --- a/packages/shorebird_cli/test/src/commands/release/release_android_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/release/release_android_command_test.dart @@ -194,7 +194,7 @@ flutter: ).thenAnswer((_) async => flutterRevisionProcessResult); when( () => shorebirdProcess.run( - 'java', + any(that: contains('java')), any(), runInShell: any(named: 'runInShell'), environment: any(named: 'environment'), diff --git a/packages/shorebird_cli/test/src/commands/release/release_command_test.dart b/packages/shorebird_cli/test/src/commands/release/release_command_test.dart index 78857a2b1..092972049 100644 --- a/packages/shorebird_cli/test/src/commands/release/release_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/release/release_command_test.dart @@ -194,7 +194,7 @@ flutter: ).thenAnswer((_) async => flutterRevisionProcessResult); when( () => shorebirdProcess.run( - 'java', + any(that: contains('java')), any(), runInShell: any(named: 'runInShell'), environment: any(named: 'environment'),