mirror of https://github.com/apache/cloudstack.git
fix tests
This commit is contained in:
parent
43162bfce8
commit
ca9fc493c4
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue