Skip to content

Commit

Permalink
Address small comments
Browse files Browse the repository at this point in the history
network policy -> NetworkPolicy
Change `Fatalf` in defer func to `Errorf`

Signed-off-by: wgrayson <[email protected]>
  • Loading branch information
GraysonWu committed May 21, 2021
1 parent 86e9222 commit 9679871
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/networkpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,6 @@ func TestIngressPolicyWithEndPort(t *testing.T) {
t.Fatalf("Pod %s should be able to connect %s, but was not able to connect", clientName, net.JoinHostPort(serverIP, fmt.Sprint(port)))
}
}

}

if clusterInfo.podV4NetworkCIDR != "" {
Expand Down Expand Up @@ -934,11 +933,11 @@ func TestIngressPolicyWithEndPort(t *testing.T) {
}
np, err := data.createNetworkPolicy("test-networkpolicy-ingress-with-endport", spec)
if err != nil {
t.Fatalf("Error when creating network policy: %v", err)
t.Fatalf("Error when creating NetworkPolicy: %v", err)
}
defer func() {
if err = data.deleteNetworkpolicy(np); err != nil {
t.Fatalf("Error when deleting network policy: %v", err)
t.Errorf("Error when deleting NetworkPolicy: %v", err)
}
}()

Expand Down

0 comments on commit 9679871

Please sign in to comment.