Skip to content

Commit 54bc48f

Browse files
committed
Fix tests
1 parent 55cd9de commit 54bc48f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/supervisor/pkg/supervisor/docker_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func TestInsertCredentialsIntoConfig_Parsing(t *testing.T) {
223223
"reg2.com:6000": {"auth": "token2"},
224224
"https://index.docker.io/v1/": {"auth": "token3"}
225225
}`,
226-
expectedCount: 4,
226+
expectedCount: 3,
227227
},
228228
{
229229
name: "empty imageAuth string",
@@ -346,7 +346,7 @@ func TestInsertCredentialsIntoConfig_Parsing(t *testing.T) {
346346
}
347347

348348
if len(expectedAuthsMap) == 0 {
349-
if resultConfig.Auths != nil && len(resultConfig.Auths) != 0 {
349+
if len(resultConfig.Auths) != 0 {
350350
t.Errorf("Expected empty auths, but got: %v", resultConfig.Auths)
351351
}
352352
} else {

0 commit comments

Comments
 (0)