Skip to content

Commit 3e7f12d

Browse files
committed
Mini refactoring
1 parent de55320 commit 3e7f12d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

pkg/devspace/sync/util_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Outer:
186186

187187
if v.shouldExistInRemote {
188188
if string(remoteData) != fileContents {
189-
t.Errorf("Wrong file contentsin file %s, got %s, expected %s", remoteFile, string(remoteData), fileContents)
189+
t.Errorf("Wrong file contents in file %s, got %s, expected %s", remoteFile, string(remoteData), fileContents)
190190
return
191191
}
192192
}
@@ -236,11 +236,9 @@ Outer:
236236

237237
//If this code is reached, everything is fine
238238
return
239-
240239
}
241240

242241
//If this code is reached, every time the results of the checks showed an unfinished sync. Timeout is reached
243-
244242
printPathAndReturnNil := func(path string, f os.FileInfo, err error) error {
245243
t.Log(path)
246244
return nil
@@ -260,6 +258,5 @@ Outer:
260258
return
261259
}
262260

263-
t.Error("Sync Failed. " +
264-
"Missing: " + path.Join(remote, missingFileOrFolder.path))
261+
t.Error("Sync Failed. Missing: " + path.Join(remote, missingFileOrFolder.path))
265262
}

0 commit comments

Comments
 (0)