Skip to content

Commit

Permalink
fix: version should only log the version messages (#2262)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Jun 18, 2024
1 parent 0bacde2 commit fb16468
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ ${lightCyan.wrap('shorebird release android -- --no-pub lib/main.dart')}''';
Shorebird $packageVersion • git@github.com:shorebirdtech/shorebird.git
$shorebirdFlutterPrefix • revision ${shorebirdEnv.flutterRevision}
Engine • revision ${shorebirdEnv.shorebirdEngineRevision}''');
exitCode = ExitCode.success.code;
} else {
try {
exitCode = await super.runCommand(topLevelResults);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ ${lightCyan.wrap("shorebird release android '--' --no-pub lib/main.dart")}''',
() => commandRunner.run(['--version']),
);
expect(result, equals(ExitCode.success.code));

verify(
() => logger.info(
'''
Expand All @@ -204,6 +205,10 @@ Flutter $flutterVersion • revision $flutterRevision
Engine • revision $shorebirdEngineRevision''',
),
).called(1);

// Making sure the only thing that was logged was the version info.
// https://github.com/shorebirdtech/shorebird/issues/2260
verifyNever(() => logger.info(any()));
});
});

Expand Down

0 comments on commit fb16468

Please sign in to comment.