Skip to content
Permalink
Browse files
fix: typo in ComputeEngineCredentials exception message (#313)
* Typo fix

* Update ComputeEngineCredentialsTest.java

* Update ComputeEngineCredentialsTest.java
  • Loading branch information
yebrahim authored and chingor13 committed Jul 31, 2019
1 parent a1ab97c commit 1a16f3809168f9d5b4cca139b0fb935134eaed14
@@ -289,7 +289,7 @@ public String getAccount() {
try {
serviceAccountEmail = getDefaultServiceAccount();
} catch (IOException ex) {
throw new RuntimeException("Failed to to get service account", ex);
throw new RuntimeException("Failed to get service account", ex);
}
}
return serviceAccountEmail;
@@ -242,7 +242,7 @@ public LowLevelHttpResponse execute() throws IOException {
credentials.getAccount();
fail("Fetching default service account should have failed");
} catch (RuntimeException e) {
assertEquals("Failed to to get service account", e.getMessage());
assertEquals("Failed to get service account", e.getMessage());
assertNotNull(e.getCause());
assertTrue(e.getCause().getMessage().contains("404"));
}
@@ -277,7 +277,7 @@ public LowLevelHttpResponse execute() throws IOException {
credentials.getAccount();
fail("Fetching default service account should have failed");
} catch (RuntimeException e) {
assertEquals("Failed to to get service account", e.getMessage());
assertEquals("Failed to get service account", e.getMessage());
assertNotNull(e.getCause());
assertTrue(e.getCause().getMessage().contains("Empty content"));
}

0 comments on commit 1a16f38

Please sign in to comment.