Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add missing mock platform to fix Windows
  • Loading branch information
stuartmorgan-g committed May 11, 2023
commit 3a6e7311883dc6e2d2233be9eaec01643840165f
8 changes: 6 additions & 2 deletions script/tool/test/publish_check_command_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ void main() {
'Test for publish-check command.',
);
runner.addCommand(PublishCheckCommand(packagesDir,
processRunner: processRunner, httpClient: mockClient));
platform: mockPlatform,
processRunner: processRunner,
httpClient: mockClient));

processRunner.mockProcessesForExecutable['flutter'] = <FakeProcessInfo>[
FakeProcessInfo(MockProcess(exitCode: 1, stdout: 'Some error from pub'),
Expand Down Expand Up @@ -339,7 +341,9 @@ void main() {
'Test for publish-check command.',
);
runner.addCommand(PublishCheckCommand(packagesDir,
processRunner: processRunner, httpClient: mockClient));
platform: mockPlatform,
processRunner: processRunner,
httpClient: mockClient));

final List<String> output =
await runCapturingPrint(runner, <String>['publish-check']);
Expand Down