test: fix I2PSocketExceptionTest::testUnknownStatus

In non-English environments, the message is translated.
This commit is contained in:
2021-01-17 23:10:34 +00:00
committed by idk
parent 41c7b7382a
commit f150855f1c
2 changed files with 25 additions and 1 deletions

View File

@@ -60,6 +60,6 @@ public class I2PSocketExceptionTest {
public void testUnknownStatus() {
I2PSocketException e = new I2PSocketException(255);
assertThat(e.getStatus(), is(255));
assertThat(e.getMessage(), is("Failure code: 255"));
assertThat(e.getMessage(), endsWith(": 255"));
}
}