mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix: initialize service-call authorizer at startup (#6876)
This commit is contained in:
1 parent
6606657434
commit
a950c704c7
2 files changed
+3
-3
No files matched your search
+1
-3
@@ -33,8 +33,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import static org.awaitility.Awaitility.await;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@@ -98,7 +96,7 @@ class RedshiftSnapshotEventsIntegrationTest {
|
||||
new TypeReference<Map<String, Cluster>>() { });
|
||||
Instant due = clusters.getForAccount(OWNER, clusterId).orElseThrow()
|
||||
.getAutomatedSnapshotAnchor().plusSeconds(3600);
|
||||
CompletableFuture.runAsync(() -> scheduler.tick(due)).get(20, TimeUnit.SECONDS);
|
||||
scheduler.tick(due);
|
||||
|
||||
List<Event> history = snapshotEvents(ownerWest.redshift(), clusterId);
|
||||
assertEquals(List.of("REDSHIFT-EVENT-2009", terminalEvent), history.stream().map(Event::eventId).toList());
|
||||
|
||||
Reference in new issue
Block a user