Skip to content

Commit 45385d6

Browse files
committed
Add close() to scan call
1 parent 22842fa commit 45385d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration-test/src/main/java/com/scalar/db/api/DistributedStoragePermissionIntegrationTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ public void scan_WithSufficientPermission_ShouldSucceed() {
9999
.partitionKey(Key.ofInt(COL_NAME1, PARTITION_KEY_VALUE))
100100
.build();
101101
// Act Assert
102-
assertThatCode(() -> storageForNormalUser.scan(scan)).doesNotThrowAnyException();
102+
assertThatCode(() -> storageForNormalUser.scan(scan).close()).doesNotThrowAnyException();
103103
}
104104

105105
@Test
106106
public void scanAll_WithSufficientPermission_ShouldSucceed() {
107107
// Arrange
108108
Scan scan = Scan.newBuilder().namespace(namespace).table(TABLE).all().build();
109109
// Act Assert
110-
assertThatCode(() -> storageForNormalUser.scan(scan)).doesNotThrowAnyException();
110+
assertThatCode(() -> storageForNormalUser.scan(scan).close()).doesNotThrowAnyException();
111111
}
112112

113113
@Test

0 commit comments

Comments
 (0)