Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit 4e7b940

Browse files
committed
Update ServerTest.kt
1 parent 6bae8d9 commit 4e7b940

File tree

1 file changed

+2
-4
lines changed
  • simplekotlinmail-test/src/test/kotlin/net/axay/simplekotlinmail/test

1 file changed

+2
-4
lines changed

simplekotlinmail-test/src/test/kotlin/net/axay/simplekotlinmail/test/ServerTest.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@ import net.axay.simplekotlinmail.server.start
55
import org.junit.jupiter.api.Test
66

77
class ServerTest {
8-
98
@Test
109
fun startServerKeepAliveTrue() {
11-
val smtpServer = smtpServer()
10+
val smtpServer = smtpServer(2500)
1211
assert(smtpServer.start(keepAlive = true).isRunning)
1312
smtpServer.stop()
1413
}
1514

1615
@Test
1716
fun startServerKeepAliveFalse() {
18-
val smtpServer = smtpServer()
17+
val smtpServer = smtpServer(2500)
1918
assert(smtpServer.start(keepAlive = false).isRunning)
2019
smtpServer.stop()
2120
}
22-
2321
}

0 commit comments

Comments
 (0)