Skip to content

Commit

Permalink
fix NotTo comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
maci3jka committed Sep 29, 2024
1 parent 7cb185b commit 9f54674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/k8s/pkg/k8sd/features/cilium/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TestGatewayEnabled(t *testing.T) {

status, err := cilium.ApplyGateway(context.Background(), snapM, gateway, network, nil)

g.Expect(err).To(Not(HaveOccurred()))
g.Expect(err).NotTo(HaveOccurred())
g.Expect(status.Enabled).To(BeTrue())
g.Expect(status.Version).To(Equal(cilium.CiliumAgentImageTag))
g.Expect(status.Message).To(Equal(cilium.EnabledMsg))
Expand Down Expand Up @@ -270,7 +270,7 @@ func TestGatewayDisabled(t *testing.T) {

status, err := cilium.ApplyGateway(context.Background(), snapM, gateway, network, nil)

g.Expect(err).To(Not(HaveOccurred()))
g.Expect(err).NotTo(HaveOccurred())
g.Expect(status.Enabled).To(BeFalse())
g.Expect(status.Version).To(Equal(cilium.CiliumAgentImageTag))
g.Expect(status.Message).To(Equal(cilium.DisabledMsg))
Expand Down
2 changes: 1 addition & 1 deletion src/k8s/pkg/k8sd/features/cilium/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ func TestCheckNetwork(t *testing.T) {
}

err := cilium.CheckNetwork(context.Background(), snapM)
g.Expect(err).To(Not(HaveOccurred()))
g.Expect(err).NotTo(HaveOccurred())
})
}

0 comments on commit 9f54674

Please sign in to comment.