File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
google-cloud-spanner/src/test/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3030import org .junit .Test ;
3131import org .junit .runner .RunWith ;
3232import org .junit .runners .JUnit4 ;
33+ import org .threeten .bp .Duration ;
3334
3435@ RunWith (JUnit4 .class )
3536public class RetryableInternalErrorTest extends AbstractMockServerTest {
@@ -42,7 +43,11 @@ public void testTranslateInternalException() {
4243 .setChannelConfigurator (ManagedChannelBuilder ::usePlaintext )
4344 .setCredentials (NoCredentials .getInstance ())
4445 .setSessionPoolOption (
45- SessionPoolOptions .newBuilder ().setMinSessions (1 ).setMaxSessions (1 ).build ())
46+ SessionPoolOptions .newBuilder ()
47+ .setMinSessions (1 )
48+ .setMaxSessions (1 )
49+ .setWaitForMinSessions (Duration .ofSeconds (1 ))
50+ .build ())
4651 .build ()
4752 .getService ()) {
4853 DatabaseClient client = spanner .getDatabaseClient (DatabaseId .of ("p" , "i" , "d" ));
You can’t perform that action at this time.
0 commit comments