From 57db13d50de6d0c8a4587bc166d0a4ebee1dad02 Mon Sep 17 00:00:00 2001 From: Eric Mountain Date: Sun, 29 Jun 2025 19:31:57 +0200 Subject: [PATCH] Amend runtime handler test for stable order Signed-off-by: Eric Mountain --- internal/cri/server/status_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/cri/server/status_test.go b/internal/cri/server/status_test.go index 2db728ec81..6ab9ffc77f 100644 --- a/internal/cri/server/status_test.go +++ b/internal/cri/server/status_test.go @@ -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") }