From f34e9a73efad3f7e7542d41d0ae6a17600e26988 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Fri, 22 Mar 2024 17:10:49 -0400 Subject: [PATCH] fix(shorebird_cli): fix e2e tests (#1816) --- .../shorebird_cli_integration_test.dart | 11 +++-------- 1 file changed, 3 insertions(+), 8 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 84dfbc71..56614afe 100644 --- a/packages/shorebird_cli/integration_test/shorebird_cli_integration_test.dart +++ b/packages/shorebird_cli/integration_test/shorebird_cli_integration_test.dart @@ -15,11 +15,6 @@ import 'package:shorebird_code_push_client/shorebird_code_push_client.dart'; import 'package:test/test.dart'; import 'package:uuid/uuid.dart'; -const tokenWarningMessage = ''' -$shorebirdTokenEnvVar needs to be updated before the next major release. -Run `shorebird login:ci` to obtain a new token. -'''; - R runWithOverrides(R Function() body) { return runScoped( body, @@ -99,7 +94,7 @@ void main() { 'shorebird init --verbose', workingDirectory: cwd, ); - expect(initShorebirdResult.stderr, equals(tokenWarningMessage)); + expect(initShorebirdResult.stderr, isEmpty); expect(initShorebirdResult.exitCode, equals(0)); final shorebirdYamlPath = p.join(cwd, 'shorebird.yaml'); @@ -139,7 +134,7 @@ void main() { 'shorebird release android --verbose', workingDirectory: cwd, ); - expect(shorebirdReleaseResult.stderr, equals(tokenWarningMessage)); + expect(shorebirdReleaseResult.stderr, isEmpty); expect( shorebirdReleaseResult.stdout, contains('Published Release $releaseVersion!'), @@ -188,7 +183,7 @@ void main() { 'shorebird patch android --verbose', workingDirectory: cwd, ); - expect(shorebirdPatchResult.stderr, equals(tokenWarningMessage)); + expect(shorebirdPatchResult.stderr, isEmpty); expect(shorebirdPatchResult.stdout, contains('Published Patch 1!')); expect(shorebirdPatchResult.exitCode, equals(0));