Skip to content

Commit

Permalink
Investigating flake kcp-dev#2865
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Giloux <fgiloux@redhat.com>
  • Loading branch information
fgiloux committed Mar 4, 2023
1 parent de6312b commit 3252c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/reconciler/partitionset/partitionset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ func TestPartitionSet(t *testing.T) {
framework.Eventually(t, func() (bool, string) {
partitions, err = partitionClient.Cluster(partitionClusterPath).List(ctx, metav1.ListOptions{})
require.NoError(t, err, "error retrieving partitions")
if len(partitions.Items) == 2 {
if len(partitions.Items) == 4 {
return true, ""
}
return false, fmt.Sprintf("expected 2 partitions, but got %d", len(partitions.Items))
return false, spew.Sdump(partitions.Items)
}, wait.ForeverTestTimeout, 100*time.Millisecond, "expected 2 partitions")
require.True(t, (reflect.DeepEqual(partitions.Items[0].Spec.Selector.MatchLabels, map[string]string{"partition-test-region": "partition-test-region-1"}) &&
reflect.DeepEqual(partitions.Items[1].Spec.Selector.MatchLabels, map[string]string{"partition-test-region": "partition-test-region-2"})) ||
Expand Down

0 comments on commit 3252c2e

Please sign in to comment.