Skip to content

Commit 2101e57

Browse files
committed
SEBSP-210 fixed test, wait in integration tests (timing problem)
1 parent 4f65680 commit 2101e57

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/main/java/ch/ethz/seb/sps/server/servicelayer/impl/LiveProctoringCacheServiceImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@ public void cleanup(final boolean isMaster) {
224224
private void updateFromStoreCache() {
225225
try {
226226

227-
System.out.println("*************** before updated live cache: "+ cache);
228-
229227
Map<String, Long> newValues = screenshotDataLiveCacheDAO
230228
.getAll()
231229
.getOrThrow()
@@ -237,8 +235,6 @@ private void updateFromStoreCache() {
237235

238236
cache.putAll(newValues);
239237

240-
System.out.println("*************** updated live cache: "+ cache);
241-
242238
} catch (Exception e) {
243239
log.error("Failed to update cache: ", e);
244240
}

src/main/java/ch/ethz/seb/sps/server/servicelayer/impl/ProctoringServiceImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ public synchronized Result<ScreenshotViewData> getRecordedImageDataAt(final Stri
119119
if (sessionActive) {
120120
// get latest screenshot data form DB and check if we need an update on session cache
121121
Long pk = liveProctoringCacheService.getLatestSSDataId(sessionUUID, false);
122-
System.out.println("************* pk: " + pk);
123122
if (pk == null || pk < 0) {
124123
if (log.isDebugEnabled()) {
125124
log.warn("Failed to get live screenshot id for session: {}", sessionUUID );

src/test/java/ch/ethz/seb/sps/integrationtests/proctoring/ProctoringServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ProctoringServiceTest extends ServiceTest_PROCTORING {
3535
@Order(1)
3636
public void i1_testFullUseCaseSuccess() throws Exception {
3737

38-
Thread.sleep(10000);
38+
Thread.sleep(2000);
3939
//GIVEN
4040
final Long expectedGroupId = 1l;
4141
final String expectedGroupName = "test_group";

0 commit comments

Comments
 (0)