Skip to content

Commit ca9fc49

Browse files
committed
fix tests
1 parent 43162bf commit ca9fc49

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/factory/ModuleBasedContextFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,12 @@ protected void testBeansInContext(ModuleDefinitionSet set, String name, int orde
121121

122122
public static class InstantiationCounter {
123123
public static Integer count = 0;
124+
private static final Object countLock = new Object();
124125

125126
int myCount;
126127

127128
public InstantiationCounter() {
128-
synchronized (count) {
129+
synchronized (countLock) {
129130
myCount = count + 1;
130131
count = myCount;
131132
}

services/console-proxy/rdpconsole/src/test/java/streamer/ByteBufferTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static Collection<Object[]> data() {
6464
@Test
6565
public void testShiftByteBy32BitsDoesNothing() throws Exception {
6666
for (byte b : data) {
67-
assertEquals(b, b << 32);
67+
assertEquals(b, (long) b << 32);
6868
}
6969
}
7070

0 commit comments

Comments
 (0)