File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
driver-core/src/test/unit/com/mongodb/connection Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,9 @@ class DefaultServerMonitorSpecification extends Specification {
219219 succeededEvent. connectionId == connectionDescription. connectionId
220220 succeededEvent. reply == BsonDocument . parse(isMasterResponse)
221221 succeededEvent. getElapsedTime(TimeUnit . NANOSECONDS ) > 0
222+
223+ cleanup :
224+ monitor?. close()
222225 }
223226
224227 def ' should send started and failed heartbeat events' () {
@@ -291,5 +294,8 @@ class DefaultServerMonitorSpecification extends Specification {
291294 failedEvent. connectionId == connectionDescription. connectionId
292295 failedEvent. throwable == exception
293296 failedEvent. getElapsedTime(TimeUnit . NANOSECONDS ) > 0
297+
298+ cleanup :
299+ monitor?. close()
294300 }
295301}
You can’t perform that action at this time.
0 commit comments