Skip to content

Commit 656d93e

Browse files
committed
Fix to improve AdminTestUtils
1 parent ce70ce8 commit 656d93e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/integration-test/java/com/scalar/db/storage/objectstorage/ObjectStorageWrapperIntegrationTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ public void getKeys_WithPrefixForTheNumberOfObjectsExceedingTheListLimit_ShouldR
270270
}
271271
} finally {
272272
for (int i = 0; i < numberOfObjects; i++) {
273-
wrapper.delete(prefix + i);
273+
try {
274+
wrapper.delete(prefix + i);
275+
} catch (PreconditionFailedException e) {
276+
// The object may not exist if the setup failed partially, so do nothing
277+
}
274278
}
275279
}
276280
}

0 commit comments

Comments
 (0)