Skip to content

Commit

Permalink
GH-43 Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed Feb 16, 2024
1 parent 1bcf5de commit 0669eea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CoroutinesRoutingTest {
JavalinTest.test(
Javalin.create { config ->
config.router.mount(coroutines) {
it.route(Route.GET, "/test") {
route(Route.GET, "/test") {
withContext(Dispatchers.IO) {
result(Thread.currentThread().name)
}
Expand All @@ -49,7 +49,7 @@ class CoroutinesRoutingTest {
JavalinTest.test(
Javalin.create { config ->
config.router.mount(coroutines) {
it.route(Route.GET, "/test") {
route(Route.GET, "/test") {
withContext(Dispatchers.IO) {
throw TestException()
}
Expand All @@ -67,7 +67,7 @@ class CoroutinesRoutingTest {
JavalinTest.test(
Javalin.create { config ->
config.router.mount(coroutines) {
it.route(Route.GET, "/test", async = false) {
route(Route.GET, "/test", async = false) {
result(Thread.currentThread().name)
}
}
Expand Down

0 comments on commit 0669eea

Please sign in to comment.