Skip to content

Commit b16dc13

Browse files
committed
oops. fix compile
1 parent 0767153 commit b16dc13

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

http4k-server-undertow/src/test/kotlin/org/http4k/server/UndertowTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package org.http4k.server
22

33
import org.http4k.client.ApacheClient
44

5-
class UndertowTest : ServerContract(::Undertow, ApacheClient())
5+
class UndertowTest : ServerContract({ Undertow(it) }, ApacheClient())

src/test/kotlin/SimpleLoadTest.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import org.http4k.client.ApacheClient
32
import org.http4k.core.Method
43
import org.http4k.core.Request
@@ -51,8 +50,8 @@ fun main(args: Array<String>) {
5150
val threads = 250
5251
val reps = 400
5352

54-
listOf(::Jetty, ::Undertow, ::SunHttp, ::Netty)
55-
.map { testWith(threads, reps, it, 8000) }
56-
.sortedBy { it.time }
57-
.forEach(::println)
53+
listOf<(Int) -> ServerConfig>({ Jetty(it) }, { Undertow(it) }, { SunHttp(it) }, { Netty(it) })
54+
.map { testWith(threads, reps, it, 8000) }
55+
.sortedBy { it.time }
56+
.forEach(::println)
5857
}

0 commit comments

Comments
 (0)