Skip to content

Commit

Permalink
[Internal] Fix nightly test failure (#339)
Browse files Browse the repository at this point in the history
## Changes
`getWorkspaceClient()` clears the account ID from the config, but
`resolve()` may load it again if the account ID is part of the selected
.databrickscfg profile or an environment variable (which it is in our
integration tests).

## Tests
<!-- How is this tested? -->
  • Loading branch information
mgyucht committed Sep 2, 2024
1 parent 248d0bb commit c9fb324
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,5 @@ public void testNewWithWorkspaceHost() {
assert newWorkspaceConfig.getAuthType().equals("oauth-m2m");
assert newWorkspaceConfig.getClientId().equals("my-client-id");
assert newWorkspaceConfig.getClientSecret().equals("my-client-secret");
assert newWorkspaceConfig.getAccountId() == null;
}
}

0 comments on commit c9fb324

Please sign in to comment.