[flutter_conductor] Support publishing to multiple channels (#94770)

This commit is contained in:
Christopher Fujino
2021-12-07 09:39:04 -08:00
committed by GitHub
parent 3b1e3ba7de
commit 481dfec00e
6 changed files with 39 additions and 21 deletions

View File

@@ -48,7 +48,7 @@ class TestStdio extends Stdio {
@override
String readLineSync() {
if (stdin.isEmpty) {
throw Exception('Unexpected call to readLineSync!');
throw Exception('Unexpected call to readLineSync! Last stdout was ${logs.last}');
}
return stdin.removeAt(0);
}

View File

@@ -966,6 +966,8 @@ void main() {
});
test('updates currentPhase if user responds yes', () async {
stdio.stdin.add('y');
// for kSynchronizeDevWithBeta
stdio.stdin.add('y');
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
const FakeCommand(
@@ -981,6 +983,10 @@ void main() {
const FakeCommand(
command: <String>['git', 'push', FrameworkRepository.defaultUpstream, '$revision1:$releaseChannel'],
),
// for kSynchronizeDevWithBeta
const FakeCommand(
command: <String>['git', 'push', FrameworkRepository.defaultUpstream, '$revision1:dev'],
),
]);
writeStateToFile(
fileSystem.file(stateFile),