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 class InstantiationCounter {
public static Integer count = 0; public static Integer count = 0;
private static final Object countLock = new Object();
int myCount; int myCount;
public InstantiationCounter() { public InstantiationCounter() {
synchronized (count) { synchronized (countLock) {
myCount = count + 1; myCount = count + 1;
count = myCount; count = myCount;
} }

View File

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