Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ void additionalFinalizer() {

extension.create(res);

// Wait until the operator has added its own finalizer before deleting. Right after create the
// resource already has exactly [ADDITIONAL_FINALIZER], so without this the assertion below
// could
// pass prematurely (before the add/mark-for-deletion/remove cycle), snapshotting a stale event
// count and making the phase-2 `eventCount + 1` assertion flaky.
await()
.untilAsserted(
() ->
assertThat(getResource().getMetadata().getFinalizers())
.containsExactlyInAnyOrder(ADDITIONAL_FINALIZER, FINALIZER));

extension.delete(getResource());

await()
Expand Down
Loading