Skip to content

Commit 6b2391f

Browse files
committed
Fix test issue
1 parent a1c43d1 commit 6b2391f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/devspace/sync/sync_config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ func createFileAndWait(from, to, postfix string) error {
100100
ioutil.WriteFile(filenameFrom, []byte(fileContents), 0666)
101101

102102
for i := 0; i < 50; i++ {
103+
time.Sleep(time.Millisecond * 100)
104+
103105
if _, err := os.Stat(filenameTo); err == nil {
104106
data, err := ioutil.ReadFile(filenameTo)
105107
if err != nil {
@@ -111,8 +113,6 @@ func createFileAndWait(from, to, postfix string) error {
111113

112114
return nil
113115
}
114-
115-
time.Sleep(time.Millisecond * 100)
116116
}
117117

118118
return fmt.Errorf("Created file %s wasn't correctly synced to %s", filenameFrom, filenameTo)

0 commit comments

Comments
 (0)