mirror of
https://github.com/containrrr/watchtower.git
synced 2026-01-04 08:08:49 +01:00
remove redundant context and ignore coverage output
This commit is contained in:
parent
75c62a90e4
commit
870f49bdc9
6 changed files with 22 additions and 25 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package auth_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/containrrr/watchtower/internal/actions/mocks"
|
||||
"github.com/containrrr/watchtower/pkg/registry/auth"
|
||||
|
|
@ -56,7 +55,7 @@ var _ = Describe("the auth module", func() {
|
|||
It("should parse the token from the response",
|
||||
SkipIfCredentialsEmpty(GHCRCredentials, func() {
|
||||
creds := fmt.Sprintf("%s:%s", GHCRCredentials.Username, GHCRCredentials.Password)
|
||||
token, err := auth.GetToken(context.Background(), mockContainer, creds)
|
||||
token, err := auth.GetToken(mockContainer, creds)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(token).NotTo(Equal(""))
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue