Skip to content

Commit

Permalink
consolidation has to happen before card status gets updated in TurnCo…
Browse files Browse the repository at this point in the history
…ntroller
  • Loading branch information
TheGrizzlyDev committed May 9, 2020
1 parent ee44573 commit 7b85bab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/matag/game/turn/TurnController.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public void turn(SimpMessageHeaderAccessor headerAccessor, TurnRequest request)
turnService.declareBlockers(gameStatus, toMapListInteger(request.getTargetsIdsForCardIds()));
}

consolidateStatusService.consolidate(gameStatus);
attachmentsService.updateGameStatus(gameStatus);
abilitiesFromOtherPermanentsService.updateGameStatus(gameStatus);
consolidateStatusService.consolidate(gameStatus);
gameStatusUpdaterService.sendUpdateGameStatus(gameStatus);
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/application/browser/MatagBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ WebElement findElement(By element) {
}

void wait(ExpectedCondition<?> condition) {
new WebDriverWait(webDriver, 5).until(condition);
new WebDriverWait(webDriver, 10).until(condition);
}

public void dumpContent() {
Expand Down

0 comments on commit 7b85bab

Please sign in to comment.