Skip to content

Commit 91f84f0

Browse files
committed
A little more test cleanup
1 parent a8ddfed commit 91f84f0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

fdb-record-layer-core/src/test/java/com/apple/foundationdb/record/provider/foundationdb/keyspace/KeySpacePathImportDataTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void importComprehensiveData() {
146146

147147
// Verify BYTES data (raw binary, not in tuple)
148148
byte[] binaryKey = emp1Path.toSubspace(context).pack(Tuple.from("binary_metadata"));
149-
assertArrayEquals("binary_test_data".getBytes(), getValue(context, binaryKey));
149+
assertArrayEquals("binary_test_data".getBytes(), context.ensureActive().get(binaryKey).join());
150150

151151
// Verify complex hierarchy with mixed types in remainder (LONG, BOOLEAN, STRING)
152152
byte[] complexKey = emp1Path.toSubspace(context).pack(Tuple.from("info", 42, true, "complex"));
@@ -404,10 +404,6 @@ private static Tuple getTuple(final FDBRecordContext context, final byte[] key)
404404
return Tuple.fromBytes(context.ensureActive().get(key).join());
405405
}
406406

407-
private static byte[] getValue(final FDBRecordContext context, final byte[] key) {
408-
return context.ensureActive().get(key).join();
409-
}
410-
411407
private static void importData(final FDBDatabase database, final KeySpacePath path, final List<DataInKeySpacePath> exportedData) {
412408
try (FDBRecordContext context = database.openContext()) {
413409
path.importData(context, exportedData).join();

0 commit comments

Comments
 (0)