From a27cb145c7f5659ec66872bcacdd3b73887de516 Mon Sep 17 00:00:00 2001 From: Andrew Kolos Date: Mon, 1 May 2023 11:21:36 -0700 Subject: [PATCH] [tools] fix `expect` calls in `FakeCommand` (#125783) Fixes #125782. Would be nice to figure out a way to put this under test. --- packages/flutter_tools/test/src/fake_process_manager.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/test/src/fake_process_manager.dart b/packages/flutter_tools/test/src/fake_process_manager.dart index a67698c327..171efdd6e2 100644 --- a/packages/flutter_tools/test/src/fake_process_manager.dart +++ b/packages/flutter_tools/test/src/fake_process_manager.dart @@ -111,13 +111,13 @@ class FakeCommand { final List matchers = this.command.map((Pattern x) => x is String ? x : matches(x)).toList(); expect(command, matchers); if (this.workingDirectory != null) { - expect(this.workingDirectory, workingDirectory); + expect(workingDirectory, this.workingDirectory); } if (this.environment != null) { - expect(this.environment, environment); + expect(environment, this.environment); } if (this.encoding != null) { - expect(this.encoding, encoding); + expect(encoding, this.encoding); } } }