mirror of
https://github.com/google/nomulus
synced 2026-09-19 06:32:00 +00:00
Fix a test flake in SetDatabaseMigrationScheduleCommandTest (#1198)
* Fix a test flake in SetDatabaseMigrationScheduleCommandTest The cache is static so some odd state may stick around between tests -- we should clear it
This commit is contained in:
@@ -111,7 +111,8 @@ public class DatabaseMigrationStateSchedule extends CrossTldSingleton
|
||||
* Cache of the current migration schedule. The key is meaningless; this is essentially a memoized
|
||||
* Supplier that can be reset for testing purposes and after writes.
|
||||
*/
|
||||
private static final LoadingCache<
|
||||
@VisibleForTesting
|
||||
public static final LoadingCache<
|
||||
Class<DatabaseMigrationStateSchedule>,
|
||||
TimedTransitionProperty<MigrationState, MigrationStateTransition>>
|
||||
// Each instance should cache the migration schedule for five minutes before reloading
|
||||
|
||||
Reference in New Issue
Block a user