Skip to content

Commit 26d1cc0

Browse files
committed
Disable SPNEGO test that fails for JDK11, see AsyncHttpClient#1706
1 parent 492cb67 commit 26d1cc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/test/java/org/asynchttpclient/spnego/SpnegoEngineTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ public void testGetCompleteServicePrincipalName() throws Exception {
135135
null,
136136
null,
137137
null);
138-
Assert.assertNotEquals("HTTP@localhost", spnegoEngine.getCompleteServicePrincipalName("localhost"));
138+
// FIXME see https://github.com/AsyncHttpClient/async-http-client/issues/1706
139+
// InetAddress.getByName("localhost").getCanonicalHostName() returns 127.0.0.1 with JDK8 and localhost with JDK11.
140+
// Assert.assertNotEquals("HTTP@localhost", spnegoEngine.getCompleteServicePrincipalName("localhost"));
139141
Assert.assertTrue(spnegoEngine.getCompleteServicePrincipalName("localhost").startsWith("HTTP@"));
140142
}
141143
{

0 commit comments

Comments
 (0)