From e8affe3fef44459ab1cc9de3f3e1ca8447539405 Mon Sep 17 00:00:00 2001 From: guangwu Date: Wed, 13 Sep 2023 16:14:29 +0800 Subject: [PATCH] fix: received typo (#1765) Signed-off-by: guoguangwu --- pkg/registry/auth/auth_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/registry/auth/auth_test.go b/pkg/registry/auth/auth_test.go index f29ebff..1dfcce4 100644 --- a/pkg/registry/auth/auth_test.go +++ b/pkg/registry/auth/auth_test.go @@ -112,7 +112,7 @@ var _ = Describe("the auth module", func() { Expect(getScopeFromImageAuthURL("ghcr.io/containrrr/watchtower")).To(Equal("containrrr/watchtower")) }) }) - It("should not crash when an empty field is recieved", func() { + It("should not crash when an empty field is received", func() { input := `bearer realm="https://ghcr.io/token",service="ghcr.io",scope="repository:user/image:pull",` imageRef, err := ref.ParseNormalizedNamed("containrrr/watchtower") Expect(err).NotTo(HaveOccurred()) @@ -120,7 +120,7 @@ var _ = Describe("the auth module", func() { Expect(err).NotTo(HaveOccurred()) Expect(res).NotTo(BeNil()) }) - It("should not crash when a field without a value is recieved", func() { + It("should not crash when a field without a value is received", func() { input := `bearer realm="https://ghcr.io/token",service="ghcr.io",scope="repository:user/image:pull",valuelesskey` imageRef, err := ref.ParseNormalizedNamed("containrrr/watchtower") Expect(err).NotTo(HaveOccurred())