Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
  • Loading branch information
shawnh2 committed Feb 21, 2024
1 parent 1f1dedf commit f7161d9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/e2e/tests/merge-gateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ var MergeGatewaysTest = suite.ConformanceTest{

gw3Addr, _, err := net.SplitHostPort(gw3HostPort)
if err != nil {
t.Errorf("failed to split hostport %s of gateway %s: %v", gw2HostPort, gw2NN.Name, err)
}

if gw1Addr != gw2Addr {
t.Errorf("inconsistent gateway address %s and %s for %s and %s", gw1Addr, gw2Addr, gw1NN.String(), gw2NN.String())
t.FailNow()
t.Errorf("failed to split hostport %s of gateway %s: %v", gw3HostPort, gw3NN.Name, err)
}

if gw2Addr != gw3Addr {
t.Errorf("inconsistent gateway address %s and %s for %s and %s", gw2Addr, gw3Addr, gw2NN.String(), gw3NN.String())
if gw1Addr != gw2Addr || gw2Addr != gw3Addr {
t.Errorf("inconsistent gateway address %s: %s, %s: %s and %s: %s",
gw1NN.String(), gw1Addr, gw2NN.String(), gw2Addr, gw3NN.String(), gw3Addr)
t.FailNow()
}

Expand Down

0 comments on commit f7161d9

Please sign in to comment.