fix tests

This commit is contained in:
Pearl Dsilva 2026-01-13 16:30:04 -05:00
parent 43162bfce8
commit ca9fc493c4
2 changed files with 3 additions and 2 deletions

View File

@ -121,11 +121,12 @@ public class ModuleBasedContextFactoryTest {
public static class InstantiationCounter {
public static Integer count = 0;
private static final Object countLock = new Object();
int myCount;
public InstantiationCounter() {
synchronized (count) {
synchronized (countLock) {
myCount = count + 1;
count = myCount;
}

View File

@ -64,7 +64,7 @@ public class ByteBufferTest {
@Test
public void testShiftByteBy32BitsDoesNothing() throws Exception {
for (byte b : data) {
assertEquals(b, b << 32);
assertEquals(b, (long) b << 32);
}
}