File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
core/src/test/java/com/datastax/oss/driver/internal/core/context Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 27
27
import com .datastax .oss .driver .api .core .session .ProgrammaticArguments ;
28
28
import com .datastax .oss .driver .api .core .tracker .RequestTracker ;
29
29
import com .datastax .oss .driver .shaded .guava .common .collect .Maps ;
30
+ import java .time .Duration ;
30
31
import java .util .Optional ;
31
32
32
33
public class MockedDriverContextFactory {
@@ -45,6 +46,8 @@ public static DefaultDriverContext defaultDriverContext(
45
46
DriverExecutionProfile blankProfile = mock (DriverExecutionProfile .class );
46
47
when (blankProfile .getString (DefaultDriverOption .PROTOCOL_COMPRESSION , "none" ))
47
48
.thenReturn ("none" );
49
+ when (blankProfile .getDuration (DefaultDriverOption .METRICS_NODE_EXPIRE_AFTER ))
50
+ .thenReturn (Duration .ofMinutes (5 ));
48
51
return blankProfile ;
49
52
});
50
53
You can’t perform that action at this time.
0 commit comments