Skip to content

Commit

Permalink
used gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
damoon committed Nov 16, 2020
1 parent ab0a938 commit 848788e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/registry_authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Test_xRegistryAuth_toDockerConfig(t *testing.T) {
EncodeToString([]byte(`{"username":"user", "password":"pass123", "serveraddress":"reg.domain.tld"}`))),
want: dockerConfig{
Auths: map[string]dockerAuth{
"reg.domain.tld": dockerAuth{
"reg.domain.tld": {
Auth: base64.StdEncoding.EncodeToString([]byte("user:pass123")),
},
},
Expand Down Expand Up @@ -60,7 +60,7 @@ func Test_dockerConfig_mustToJSON(t *testing.T) {
},
{
name: "logged in",
auths: map[string]dockerAuth{"reg": dockerAuth{
auths: map[string]dockerAuth{"reg": {
Auth: base64.StdEncoding.EncodeToString([]byte("user:pass123")),
}},
want: []byte(`{"auths":{"reg":{"auth":"dXNlcjpwYXNzMTIz"}}}`),
Expand Down

0 comments on commit 848788e

Please sign in to comment.