Skip to content

Commit

Permalink
Spotless formatting and test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjuggler committed Feb 25, 2020
1 parent 8f83a5c commit 103042c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ public ResponseEntity<ClusterLocalizeResponse> localize(
.forEach(
notebookName ->
userRecentResourceService.updateNotebookEntry(
workspaceId, userProvider.get().getUserId(), gcsNotebooksDir + "/" + notebookName));
workspaceId,
userProvider.get().getUserId(),
gcsNotebooksDir + "/" + notebookName));

String workspacePath = dbWorkspace.getFirecloudName();
String editDir = "workspaces/" + workspacePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ public void testLocalize_differentNamespace() {
stubGetWorkspace(WORKSPACE_NS, WORKSPACE_ID, LOGGED_IN_USER_EMAIL);
stubGetWorkspace("other-proj", "myotherworkspace", LOGGED_IN_USER_EMAIL);
ClusterLocalizeResponse resp = clusterController.localize("other-proj", req).getBody();
verify(mockLeoNotebooksClient).localize(eq("other-proj"), eq(getClusterName()), mapCaptor.capture());
verify(mockLeoNotebooksClient)
.localize(eq("other-proj"), eq(getClusterName()), mapCaptor.capture());

Map<String, String> localizeMap = mapCaptor.getValue();
assertThat(localizeMap.keySet())
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/utils/cluster-initializer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export class ClusterInitializer {
return this.reject(e);
} else {
this.handleUnknownError(e);
if (this.tooManyServerErrors()) {
if (this.hasTooManyServerErrors()) {
return this.reject(
new ExceededErrorCountError('Reached max server error count', this.currentCluster));
}
Expand Down

0 comments on commit 103042c

Please sign in to comment.