Skip to content

Commit 576d8b9

Browse files
test: Configuring ITDatabaseRolePermissionTest to use SpannerOptions … (#2304)
* test: Configuring ITDatabaseRolePermissionTest to use SpannerOptions from testHelper class * style: lint * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 7b55874 commit 576d8b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITDatabaseRolePermissionTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public void grantAndRevokeDatabaseRolePermissions() throws Exception {
100100
.get(5, TimeUnit.MINUTES);
101101

102102
// Connect to db with dbRoleParent.
103-
SpannerOptions options = SpannerOptions.newBuilder().setDatabaseRole(dbRoleParent).build();
103+
SpannerOptions options =
104+
testHelper.getOptions().toBuilder().setDatabaseRole(dbRoleParent).build();
104105

105106
Spanner spanner = options.getService();
106107
DatabaseClient dbClient = spanner.getDatabaseClient(createdDatabase.getId());

0 commit comments

Comments
 (0)