Skip to content

Commit

Permalink
Revert int test states
Browse files Browse the repository at this point in the history
  • Loading branch information
Torch3333 committed Dec 13, 2024
1 parent f5086b2 commit c767973
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import com.scalar.db.service.StorageFactory;
import com.scalar.db.util.TestUtils;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
Expand Down Expand Up @@ -204,7 +203,7 @@ public void scan_WithMaxSecondaryIndexValue_ShouldReturnProperResult()
public void scan_WithMinSecondaryIndexValue_ShouldReturnProperResult()
throws ExecutionException, IOException {

for (DataType secondaryIndexType : Arrays.asList(DataType.DATE)) {
for (DataType secondaryIndexType : secondaryIndexTypes) {
truncateTable(secondaryIndexType);
// Arrange
Column<?> secondaryIndexValue = getColumnWithMinValue(INDEX_COL_NAME, secondaryIndexType);
Expand All @@ -217,15 +216,10 @@ public void scan_WithMinSecondaryIndexValue_ShouldReturnProperResult()
.build();

// Act
try {
List<Result> results = scanAll(scan);
assertResults(results, secondaryIndexValue);
} catch (Exception e) {
e.printStackTrace();
throw e;
}
// Assert
List<Result> results = scanAll(scan);

// Assert
assertResults(results, secondaryIndexValue);
}
}

Expand Down

0 comments on commit c767973

Please sign in to comment.