diff --git a/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/BaseSessionPoolTest.java b/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/BaseSessionPoolTest.java index 0b96be56d005..8209fe2fd3a9 100644 --- a/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/BaseSessionPoolTest.java +++ b/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/BaseSessionPoolTest.java @@ -17,6 +17,7 @@ package com.google.cloud.spanner; import static org.mockito.Mockito.any; +import static org.mockito.Mockito.anyLong; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.spy; @@ -45,8 +46,7 @@ public ScheduledExecutorService get() { // To prevent maintenance loop from running. doReturn(mockFuture) .when(mockExecutor) - .scheduleAtFixedRate( - any(Runnable.class), any(Long.class), any(Long.class), any(TimeUnit.class)); + .scheduleAtFixedRate(any(Runnable.class), anyLong(), anyLong(), any(TimeUnit.class)); return mockExecutor; }