Line up usage and add assertions

This commit is contained in:
Terry Wilson 2023-10-06 14:22:11 -07:00 committed by Terry Wilson
parent 21c287f7c3
commit 501246374c
2 changed files with 4 additions and 1 deletions

View File

@ -204,7 +204,7 @@ public class StressTestClient {
+ "\n --use_test_ca=true|false Whether to trust our fake CA. Requires" + "\n --use_test_ca=true|false Whether to trust our fake CA. Requires"
+ " --use_tls=true" + " --use_tls=true"
+ "\n to have effect. Default: " + c.useTestCa + "\n to have effect. Default: " + c.useTestCa
+ "\n --custom_credentials_type Custom credentials type to use. Default " + "\n --custom_credentials_type Custom credentials type to use. Default "
+ c.customCredentialsType + c.customCredentialsType
+ "\n --test_duration_secs=SECONDS '-1' for no limit. Default: " + c.durationSecs + "\n --test_duration_secs=SECONDS '-1' for no limit. Default: " + c.durationSecs
+ "\n --num_channels_per_server=INT Number of connections to each server address." + "\n --num_channels_per_server=INT Number of connections to each server address."

View File

@ -19,6 +19,7 @@ package io.grpc.testing.integration;
import static com.google.common.collect.Sets.newHashSet; import static com.google.common.collect.Sets.newHashSet;
import static java.util.Collections.singletonList; import static java.util.Collections.singletonList;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
@ -65,6 +66,8 @@ public class StressTestClientTest {
assertEquals(1, client.channelsPerServer()); assertEquals(1, client.channelsPerServer());
assertEquals(1, client.stubsPerChannel()); assertEquals(1, client.stubsPerChannel());
assertEquals(8081, client.metricsPort()); assertEquals(8081, client.metricsPort());
assertEquals(-1, client.metricsLogRateSecs());
assertNull((client.customCredentialsType()));
} }
@Test @Test