Skip to content

Commit

Permalink
test: ignore host name errors on Mac (#1114)
Browse files Browse the repository at this point in the history
The SSL tests sometimes fail with a 'could not translate host name'
error on Mac. This is a not an actual problem, so we ignore these
errors.
  • Loading branch information
olavloite authored Oct 13, 2023
1 parent 901ac20 commit 5feb5be
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@ public void testSSLVerifyFull() throws Exception {
output = reader.lines().collect(Collectors.joining("\n"));
}

assertEquals(host, "", errors);
// Ignore known errors on some Macs on GitHub Actions.
if (!(host.startsWith("Mac-")
&& errors.contains("error: could not translate host name \"Mac-"))) {
assertEquals(host, "", errors);
}
assertEquals(" C \n---\n 1\n(1 row)\n", output);
int res = process.waitFor();
assertEquals(0, res);
Expand Down

0 comments on commit 5feb5be

Please sign in to comment.