Skip to content

Commit fd26b00

Browse files
committed
Test
1 parent e10bcb0 commit fd26b00

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/main/java/com/iexec/worker/pubsub/StompClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private void requestNewSession() {
102102
* @throws InterruptedException
103103
*/
104104
@Scheduled(fixedDelay = 1000)
105-
private void listenToSessionRequestEvents() throws InterruptedException {
105+
private void listenToSessionRequestEventsInTheQueue() throws InterruptedException {
106106
while (true) {
107107
// get the first request event or wait until available
108108
this.sessionRequestQueue.take();
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.iexec.worker.pubsub;
2+
3+
import org.junit.Before;
4+
import org.mockito.InjectMocks;
5+
import org.mockito.MockitoAnnotations;
6+
7+
public class StompClientTests {
8+
9+
@InjectMocks
10+
private StompClient stompClient;
11+
12+
@Before
13+
public void init() {
14+
MockitoAnnotations.initMocks(this);
15+
}
16+
}

0 commit comments

Comments
 (0)