Skip to content

Commit

Permalink
fix(tests): Ensure that the UserRolesSyncer does not run mid-test (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajordens authored Jun 18, 2018
1 parent 64bc33d commit 369ffd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public UserRolesSyncer(LockManager lockManager,

@Scheduled(fixedDelay = 30000L)
public void schedule() {
if (syncDelayMs < 0) {
return;
}

LockManager.LockOptions lockOptions = new LockManager.LockOptions()
.withLockName("Fiat.UserRolesSyncer".toLowerCase())
.withMaximumLockDuration(Duration.ofMillis(syncDelayMs + syncDelayTimeoutMs))
Expand Down
1 change: 1 addition & 0 deletions fiat-web/src/test/resources/fiat.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ services.front50.baseUrl=ignored
services.clouddriver.baseUrl=ignored

fiat.cache.expiresAfterWriteSeconds=0
fiat.writeMode.syncDelayMs=-1

0 comments on commit 369ffd5

Please sign in to comment.