Skip to content

Commit

Permalink
fix: typo in ComputeEngineCredentials exception message (#313)
Browse files Browse the repository at this point in the history
* Typo fix

* Update ComputeEngineCredentialsTest.java

* Update ComputeEngineCredentialsTest.java
  • Loading branch information
yebrahim authored and chingor13 committed Jul 31, 2019
1 parent a1ab97c commit 1a16f38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -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;
Expand Down
Expand Up @@ -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"));
}
Expand Down Expand Up @@ -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"));
}
Expand Down

0 comments on commit 1a16f38

Please sign in to comment.