Skip to content

Commit 57db13d

Browse files
EricMountaink8s-infra-cherrypick-robot
authored andcommitted
Amend runtime handler test for stable order
Signed-off-by: Eric Mountain <eric.mountain@datadoghq.com>
1 parent d822c90 commit 57db13d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

internal/cri/server/status_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ func TestStatusRuntimeHandlersOrdering(t *testing.T) {
134134
}
135135
}
136136

137-
// The test will fail if the order is the same, showing that the ordering is stable
138-
// In the current implementation, order is not stable
139-
assert.False(t, sameOrder, "RuntimeHandlers order is stable across Status() calls - unexpected")
137+
// Fail if runtime handlers order varies across calls to Status()
138+
assert.True(t, sameOrder, "RuntimeHandlers order is unstable across Status() calls")
140139
}

0 commit comments

Comments
 (0)