diff --git a/pkg/container/container_test.go b/pkg/container/container_test.go index 736387d..46cf658 100644 --- a/pkg/container/container_test.go +++ b/pkg/container/container_test.go @@ -224,6 +224,14 @@ var _ = Describe("the container", func() { Expect(c.IsNoPull()).To(Equal(false)) }) }) + When("no-pull label is set to an invalid value", func() { + c := MockContainer(WithLabels(map[string]string{ + "com.centurylinklabs.watchtower.no-pull": "maybe", + })) + It("should return false", func() { + Expect(c.IsNoPull()).To(Equal(false)) + }) + }) When("no-pull label is unset", func() { c = MockContainer(WithLabels(map[string]string{})) It("should return false", func() {