Skip to content

Commit

Permalink
test: fix ITDatabaseRolePermissionTest.roleWithNoPermissions to use c…
Browse files Browse the repository at this point in the history
…orrect SpannerOptions (#2305)
  • Loading branch information
rajatbhatta authored Feb 24, 2023
1 parent 576d8b9 commit 192b8ca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ public void roleWithNoPermissions() throws Exception {
.get(5, TimeUnit.MINUTES);

// Connect to db with dbRoleOrphan
SpannerOptions options = SpannerOptions.newBuilder().setDatabaseRole(dbRoleOrphan).build();
SpannerOptions options =
testHelper.getOptions().toBuilder().setDatabaseRole(dbRoleOrphan).build();

Spanner spanner = options.getService();
DatabaseClient dbClient = spanner.getDatabaseClient(createdDatabase.getId());
Expand Down

0 comments on commit 192b8ca

Please sign in to comment.