Skip to content

Commit e8affe3

Browse files
authored
fix: received typo (#1765)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
1 parent 36391b0 commit e8affe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/registry/auth/auth_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ var _ = Describe("the auth module", func() {
112112
Expect(getScopeFromImageAuthURL("ghcr.io/containrrr/watchtower")).To(Equal("containrrr/watchtower"))
113113
})
114114
})
115-
It("should not crash when an empty field is recieved", func() {
115+
It("should not crash when an empty field is received", func() {
116116
input := `bearer realm="https://ghcr.io/token",service="ghcr.io",scope="repository:user/image:pull",`
117117
imageRef, err := ref.ParseNormalizedNamed("containrrr/watchtower")
118118
Expect(err).NotTo(HaveOccurred())
119119
res, err := auth.GetAuthURL(input, imageRef)
120120
Expect(err).NotTo(HaveOccurred())
121121
Expect(res).NotTo(BeNil())
122122
})
123-
It("should not crash when a field without a value is recieved", func() {
123+
It("should not crash when a field without a value is received", func() {
124124
input := `bearer realm="https://ghcr.io/token",service="ghcr.io",scope="repository:user/image:pull",valuelesskey`
125125
imageRef, err := ref.ParseNormalizedNamed("containrrr/watchtower")
126126
Expect(err).NotTo(HaveOccurred())

0 commit comments

Comments
 (0)