Skip to content

Commit 34df486

Browse files
authored
fix flaky comparison unit test of retruned errors (zalando#2822)
1 parent bb6242e commit 34df486

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/cluster/streams_test.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ var (
7676
},
7777
BatchSize: k8sutil.UInt32ToPointer(uint32(100)),
7878
CPU: k8sutil.StringToPointer("250m"),
79-
Memory: k8sutil.StringToPointer("500Mi"),
8079
},
8180
},
8281
TeamID: "acid",
@@ -95,8 +94,7 @@ var (
9594
Name: fmt.Sprintf("%s-12345", clusterName),
9695
Namespace: namespace,
9796
Annotations: map[string]string{
98-
constants.EventStreamCpuAnnotationKey: "250m",
99-
constants.EventStreamMemoryAnnotationKey: "500Mi",
97+
constants.EventStreamCpuAnnotationKey: "250m",
10098
},
10199
Labels: map[string]string{
102100
"application": "spilo",
@@ -654,7 +652,7 @@ func TestSameStreams(t *testing.T) {
654652
streamsA: newFabricEventStream([]zalandov1.EventStream{stream1, stream2}, nil),
655653
streamsB: fes,
656654
match: false,
657-
reason: "new streams annotations do not match: Added \"fes.zalando.org/FES_CPU\" with value \"250m\". Added \"fes.zalando.org/FES_MEMORY\" with value \"500Mi\"., new streams labels do not match the current ones, new streams EventStreams array does not match : number of defined streams is different",
655+
reason: "new streams annotations do not match: Added \"fes.zalando.org/FES_CPU\" with value \"250m\"., new streams labels do not match the current ones, new streams EventStreams array does not match : number of defined streams is different",
658656
},
659657
{
660658
subTest: "event stream recovery specs differ",

0 commit comments

Comments
 (0)