Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
eshryane committed Oct 29, 2024
1 parent 84dc093 commit 1b194f3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.ripe.db.whois.common.rpsl.RpslObject;
import net.ripe.db.whois.common.support.TelnetWhoisClient;
import net.ripe.db.whois.query.QueryMessages;
import net.ripe.db.whois.query.QueryServer;
import net.ripe.db.whois.query.support.AbstractQueryIntegrationTest;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
Expand Down Expand Up @@ -510,7 +509,7 @@ public void query_utf8_encoded_object() throws Exception {
"descr: 66121 Saarbrücken\n" +
"' USING utf8) WHERE pkey = '117.80.81.in-addr.arpa'");

final String response = TelnetWhoisClient.queryLocalhost(QueryServer.port, "117.80.81.in-addr.arpa");
final String response = TelnetWhoisClient.queryLocalhost(queryServer.getPort(), "117.80.81.in-addr.arpa");

// 0x00FC is UTF-8 representation of u-umlaut (2 bytes)
assertThat(response, containsString("Saarbr\u00FCcken"));
Expand All @@ -526,7 +525,7 @@ public void query_latin1_encoded_object_in_utf8_table() throws Exception {
"descr: 66121 Saarbrücken" +
"' WHERE pkey = '117.80.81.in-addr.arpa'");

final String response = TelnetWhoisClient.queryLocalhost(QueryServer.port, "117.80.81.in-addr.arpa");
final String response = TelnetWhoisClient.queryLocalhost(queryServer.getPort(), "117.80.81.in-addr.arpa");

assertThat(response, containsString("Saarbr\u00FCcken"));
}
Expand Down

0 comments on commit 1b194f3

Please sign in to comment.