mirror of
https://github.com/google/nomulus
synced 2026-02-07 13:31:12 +00:00
Clean up streams in SetNumInstancesCommand
Also using Service instead of serviceId String - because it helps readability. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228952033
This commit is contained in:
@@ -60,7 +60,7 @@ public class SetNumInstancesCommandTest extends CommandTestCase<SetNumInstancesC
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() -> runCommand("--services=", "--versions=version", "--num_instances=5"));
|
||||
assertThat(thrown).hasMessageThat().contains("Invalid service(s): []");
|
||||
assertThat(thrown).hasMessageThat().contains("Invalid service ''");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -71,7 +71,7 @@ public class SetNumInstancesCommandTest extends CommandTestCase<SetNumInstancesC
|
||||
() ->
|
||||
runCommand(
|
||||
"--services=INVALID,DEFAULT", "--versions=version", "--num_instances=5"));
|
||||
assertThat(thrown).hasMessageThat().contains("Invalid service(s): [INVALID]");
|
||||
assertThat(thrown).hasMessageThat().contains("Invalid service 'INVALID'");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user