Skip to content

Commit 381222c

Browse files
committed
Fix bad test condition that might pass even if target was not assigned
1 parent 92d0069 commit 381222c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/otel-allocator/allocation/per_node_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestAllocationPerNode(t *testing.T) {
9797
// one of the others, depending on the strategy and collector loop order
9898
if targetHash == thirdTarget.Hash() {
9999
assert.Empty(t, item.GetNodeName())
100-
assert.LessOrEqual(t, len(itemsForCollector), 2)
100+
assert.NotZero(t, len(itemsForCollector))
101101
continue
102102
}
103103

0 commit comments

Comments
 (0)