diff --git a/src/test/java/com/google/cloud/spanner/pgadapter/SSLMockServerTest.java b/src/test/java/com/google/cloud/spanner/pgadapter/SSLMockServerTest.java index 193207697..1d3eb11b5 100644 --- a/src/test/java/com/google/cloud/spanner/pgadapter/SSLMockServerTest.java +++ b/src/test/java/com/google/cloud/spanner/pgadapter/SSLMockServerTest.java @@ -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);