File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
driver-sync/src/test/functional/com/mongodb/client Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3636import static com .mongodb .ClusterFixture .isStandalone ;
3737import static com .mongodb .ClusterFixture .serverVersionAtLeast ;
3838import static com .mongodb .client .Fixture .getMongoClientSettingsBuilder ;
39+ import static java .util .Collections .synchronizedList ;
3940import static java .util .concurrent .TimeUnit .NANOSECONDS ;
4041import static org .bson .BsonDocument .parse ;
4142import static org .junit .Assert .assertFalse ;
@@ -73,7 +74,7 @@ public void testRTTUpdates() throws InterruptedException {
7374 assumeTrue (isStandalone ());
7475 assumeTrue (serverVersionAtLeast (4 , 4 ));
7576
76- List <ServerDescriptionChangedEvent > events = new ArrayList <>();
77+ List <ServerDescriptionChangedEvent > events = synchronizedList ( new ArrayList <>() );
7778 MongoClientSettings settings = getMongoClientSettingsBuilder ()
7879 .applicationName ("streamingRttTest" )
7980 .applyToServerSettings (new Block <ServerSettings .Builder >() {
You can’t perform that action at this time.
0 commit comments