Skip to content

Commit 72d4e3f

Browse files
committed
Remove binaries accidentally added, fix test
1 parent 0c97cf4 commit 72d4e3f

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed
-296 KB
Binary file not shown.
-132 KB
Binary file not shown.
-301 KB
Binary file not shown.
-97.8 KB
Binary file not shown.
-254 KB
Binary file not shown.

src/test/java/org/lmdbjava/EnvTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ void testDefaultOpenNoName1() {
538538
final List<byte[]> dbiNames = env.getDbiNames();
539539
assertThat(dbiNames).hasSize(2);
540540
assertThat(dbiNames.get(0)).isEqualTo("abc".getBytes(Env.DEFAULT_NAME_CHARSET));
541+
assertThat(dbiNames.get(1)).isEqualTo("def".getBytes(Env.DEFAULT_NAME_CHARSET));
541542
}
542543
});
543544
}
@@ -550,11 +551,14 @@ void testDefaultOpenNoName2() {
550551
final EnvInfo info = env.info();
551552
assertThat(info.maxReaders).isEqualTo(MAX_READERS_DEFAULT);
552553
final Dbi<ByteBuffer> db = env.openDbi((byte[]) null, MDB_CREATE);
554+
db.put(bb("abc"), allocateDirect(1));
555+
db.put(bb("def"), allocateDirect(1));
553556

554557
// As this is the unnamed database it returns all keys in the unnamed db
555558
final List<byte[]> dbiNames = env.getDbiNames();
556-
assertThat(dbiNames).hasSize(1);
557-
assertThat(dbiNames.get(0)).isEqualTo(new byte[0]);
559+
assertThat(dbiNames).hasSize(2);
560+
assertThat(dbiNames.get(0)).isEqualTo("abc".getBytes(Env.DEFAULT_NAME_CHARSET));
561+
assertThat(dbiNames.get(1)).isEqualTo("def".getBytes(Env.DEFAULT_NAME_CHARSET));
558562
}
559563
});
560564
}

0 commit comments

Comments
 (0)