Skip to content

Commit

Permalink
Fix ServerRequestExtensionsTests on Java 13
Browse files Browse the repository at this point in the history
Closes gh-23677
  • Loading branch information
sdeleuze committed Sep 24, 2019
1 parent 2888b03 commit 97026f1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ class ServerRequestExtensionsTests {

@Test
fun `remoteAddressOrNull with value`() {
val remoteAddress = mockk<InetSocketAddress>()
val remoteAddress = InetSocketAddress(1234)
every { request.remoteAddress() } returns Optional.of(remoteAddress)
assertThat(remoteAddress).isEqualTo(request.remoteAddressOrNull())
verify { request.remoteAddress() }
Expand Down

0 comments on commit 97026f1

Please sign in to comment.