Skip to content

Commit 4a580cc

Browse files
committed
Make sure to stop server when assertion failed
1 parent 076c26d commit 4a580cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/symbol-processor/src/test/kotlin/org/jetbrains/dataframe/ksp/EmbeddedServerRunners.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ fun useHostedFile(file: File, f: (url: String) -> Unit) {
1515
}
1616
}
1717
}.start()
18-
f("http://0.0.0.0:8080/")
19-
server.stop(500, 1000)
18+
try {
19+
f("http://0.0.0.0:8080/")
20+
} finally {
21+
server.stop(500, 1000)
22+
}
2023
}

0 commit comments

Comments
 (0)