Skip to content

Commit

Permalink
Fix cached user management tests to take into account cached implemen…
Browse files Browse the repository at this point in the history
…tation (#15633)
  • Loading branch information
skisel-da committed Nov 20, 2022
1 parent 3c06457 commit 218a6a8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ class CachedUserManagementStoreSpec
with MockitoSugar
with ArgumentMatchersSugar {

override def newStore() = new InMemoryUserManagementStore(createAdmin = false)
override def newStore() = new CachedUserManagementStore(
new InMemoryUserManagementStore(createAdmin = false),
expiryAfterWriteInSeconds = 1,
maximumCacheSize = 10,
Metrics.ForTesting,
)

private val user = User(
id = Ref.UserId.assertFromString("user_id1"),
Expand Down

0 comments on commit 218a6a8

Please sign in to comment.