Amend runtime handler test for stable order

Signed-off-by: Eric Mountain <eric.mountain@datadoghq.com>
This commit is contained in:
Eric Mountain authored and k8s-infra-cherrypick-robot committed 2025-07-02 00:52:55 +00:00
1 parent d822c90480
commit 57db13d50d
1 file changed
+2 -3
+2 -3
View File
@@ -134,7 +134,6 @@ func TestStatusRuntimeHandlersOrdering(t *testing.T) {
}
}
// The test will fail if the order is the same, showing that the ordering is stable
// In the current implementation, order is not stable
assert.False(t, sameOrder, "RuntimeHandlers order is stable across Status() calls - unexpected")
// Fail if runtime handlers order varies across calls to Status()
assert.True(t, sameOrder, "RuntimeHandlers order is unstable across Status() calls")
}