Skip to content

Commit 2f18207

Browse files
authored
Revert "Use a random port for mongo test to avoid conflict"
1 parent 014ad39 commit 2f18207

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scala-libraries-persistence/src/test/scala/com/baeldung/scala/reactivemongo/ReactiveMongoUnitTest.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,13 @@ import reactivemongo.api.Cursor
1616
import reactivemongo.api.bson.BSONDocument
1717
import reactivemongo.api.bson.collection.BSONCollection
1818

19-
import java.net.ServerSocket
20-
2119
class ReactiveMongoUnitTest
2220
extends AsyncWordSpec
2321
with Matchers
2422
with BeforeAndAfterAll
2523
with BeforeAndAfterEach {
2624

27-
private val serverSocket = new ServerSocket(0)
28-
val PORT: Int = serverSocket.getLocalPort
25+
val PORT = 27079
2926
val IP = "localhost"
3027

3128
val mongodInstance: ImmutableMongod = Mongod

0 commit comments

Comments
 (0)