We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08c0c90 + b27bb3b commit 014ad39Copy full SHA for 014ad39
scala-libraries-persistence/src/test/scala/com/baeldung/scala/reactivemongo/ReactiveMongoUnitTest.scala
@@ -16,13 +16,16 @@ import reactivemongo.api.Cursor
16
import reactivemongo.api.bson.BSONDocument
17
import reactivemongo.api.bson.collection.BSONCollection
18
19
+import java.net.ServerSocket
20
+
21
class ReactiveMongoUnitTest
22
extends AsyncWordSpec
23
with Matchers
24
with BeforeAndAfterAll
25
with BeforeAndAfterEach {
26
- val PORT = 27079
27
+ private val serverSocket = new ServerSocket(0)
28
+ val PORT: Int = serverSocket.getLocalPort
29
val IP = "localhost"
30
31
val mongodInstance: ImmutableMongod = Mongod
0 commit comments