-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: replace client creation methods for all new samples with auto-generated admin clients #2927
chore: replace client creation methods for all new samples with auto-generated admin clients #2927
Conversation
…od while retrying exceptions in unit tests. * For details on issue see - googleapis#2206
fix: prevent illegal negative timeout values into thread sleep() method while retrying exceptions in unit tests.
samples/snippets/src/main/java/com/example/spanner/admin/generated/AddAndDropDatabaseRole.java
Outdated
Show resolved
Hide resolved
samples/snippets/src/main/java/com/example/spanner/admin/generated/AddAndDropDatabaseRole.java
Show resolved
Hide resolved
…ated/AddAndDropDatabaseRole.java Co-authored-by: Knut Olav Løite <[email protected]>
@@ -113,6 +113,7 @@ public static void afterClass() throws InterruptedException { | |||
} | |||
} | |||
for (String backupId : idGenerator.getBackupIds()) { | |||
System.out.println("Trying to delete " + backupId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I assume that this and the other System.out.println will be removed before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually pretty useful. At the end of the test it prints if all the resources were cleaned up or not.
createDatabaseAdminClient()
andcreateInstanceAdminClient
methods since it supports emulator.