diff --git a/auto/backup/uploader_test.go b/auto/backup/uploader_test.go index aaeac026..fb999044 100644 --- a/auto/backup/uploader_test.go +++ b/auto/backup/uploader_test.go @@ -72,7 +72,7 @@ func Test_UploaderSingleUpload_ID(t *testing.T) { sc := &mockStorageClient{ currentIDFn: func(ctx context.Context) (string, error) { nCalled++ - if nCalled == 0 { + if nCalled == 1 { defer wg.Done() } return "1234", nil