Skip to content

Commit 0350e5a

Browse files
committed
Fix typos in pkg/proxy/ipvs/ipset/ipset_test.go
There were a couple of typos in test error logs Signed-off-by: Antonin Bas <[email protected]>
1 parent 78879fa commit 0350e5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/proxy/ipvs/ipset/ipset_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func TestAddEntry(t *testing.T) {
406406
t.Errorf("expected success, got %v", err)
407407
}
408408
if fcmd.CombinedOutputCalls != 2 {
409-
t.Errorf("expected 3 CombinedOutput() calls, got %d", fcmd.CombinedOutputCalls)
409+
t.Errorf("expected 2 CombinedOutput() calls, got %d", fcmd.CombinedOutputCalls)
410410
}
411411
if !sets.NewString(fcmd.CombinedOutputLog[1]...).HasAll(testCases[i].addCombinedOutputLog[1]...) {
412412
t.Errorf("wrong CombinedOutput() log, got %s", fcmd.CombinedOutputLog[1])
@@ -489,7 +489,7 @@ func TestTestEntry(t *testing.T) {
489489
t.Errorf("expected success, got %v", err)
490490
}
491491
if fcmd.CombinedOutputCalls != 1 {
492-
t.Errorf("expected 2 CombinedOutput() calls, got %d", fcmd.CombinedOutputCalls)
492+
t.Errorf("expected 1 CombinedOutput() calls, got %d", fcmd.CombinedOutputCalls)
493493
}
494494
if !sets.NewString(fcmd.CombinedOutputLog[0]...).HasAll("ipset", "test", setName, "10.120.7.100,tcp:8080") {
495495
t.Errorf("wrong CombinedOutput() log, got %s", fcmd.CombinedOutputLog[0])

0 commit comments

Comments
 (0)