File tree Expand file tree Collapse file tree
driver-core/src/test/unit/com/mongodb/connection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ public class ServerSelectionSelectionTest {
7878 private final String description ;
7979 private final BsonDocument definition ;
8080 private final ClusterDescription clusterDescription ;
81- private final long heartbeatFrequencyMS ;
8281 private final boolean error ;
8382 private final List <ServerAddress > deprioritizedServerAddresses ;
8483
@@ -92,7 +91,8 @@ public class ServerSelectionSelectionTest {
9291 public ServerSelectionSelectionTest (final String description , final BsonDocument definition ) {
9392 this .description = description ;
9493 this .definition = definition ;
95- this .heartbeatFrequencyMS = definition .getNumber ("heartbeatFrequencyMS" , new BsonInt64 (10000 )).longValue ();
94+
95+ long heartbeatFrequencyMS = definition .getNumber ("heartbeatFrequencyMS" , new BsonInt64 (10000 )).longValue ();
9696 this .error = definition .getBoolean ("error" , BsonBoolean .FALSE ).getValue ();
9797 this .clusterDescription = buildClusterDescription (definition .getDocument ("topology_description" ),
9898 ServerSettings .builder ().heartbeatFrequency (heartbeatFrequencyMS , TimeUnit .MILLISECONDS ).build ());
You can’t perform that action at this time.
0 commit comments