Skip to content

Commit f5a7481

Browse files
test: Passing correct InstanceID for encrypted instance
1 parent 9a3b5d4 commit f5a7481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/snippets/src/test/java/com/example/spanner/SpannerSampleIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static void deleteStaleEncryptedTestInstances() throws InterruptedExcept
126126
.iterateAll()) {
127127
if ((now.getSeconds() - instance.getCreateTime().getSeconds())
128128
> STALE_INSTANCE_THRESHOLD_SECS) {
129-
deleteAllBackups(instanceId);
129+
deleteAllBackups(instance.getId().getInstance());
130130
instance.delete();
131131
}
132132
}

0 commit comments

Comments
 (0)