remove redundant context and ignore coverage output

This commit is contained in:
Simon Aronsson 2020-12-06 13:18:31 +01:00
parent 75c62a90e4
commit 870f49bdc9
No known key found for this signature in database
GPG key ID: 8DA57A5FD341605B
6 changed files with 22 additions and 25 deletions

View file

@ -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(""))
}),