[flutter_conductor] Support publishing to multiple channels (#94770)
This commit is contained in:
committed by
GitHub
parent
3b1e3ba7de
commit
481dfec00e
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user