diff --git a/.golangci.yml b/.golangci.yml index 9cb940e8..0b3386a4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,6 +6,8 @@ issues: - linters: - revive text: " and that stutters;" + - path: '(.+)_test\.go' + text: "dot-imports: should not use dot imports" linters: disable: diff --git a/pkg/ns/ns_linux_test.go b/pkg/ns/ns_linux_test.go index 82f56eda..a6082c1c 100644 --- a/pkg/ns/ns_linux_test.go +++ b/pkg/ns/ns_linux_test.go @@ -182,7 +182,7 @@ var _ = Describe("Linux namespace operations", func() { testNsInode, err := getInodeNS(targetNetNS) Expect(err).NotTo(HaveOccurred()) - Expect(testNsInode).NotTo(Equal(0)) + Expect(testNsInode).NotTo(Equal(uint64(0))) Expect(testNsInode).NotTo(Equal(origNSInode)) })