@@ -83,6 +83,7 @@ object WatchSourceTests extends WatchTests {
83
83
" Running qux foo contents initial-foo1 initial-foo2 Running qux bar contents initial-bar"
84
84
)
85
85
86
+ Thread .sleep(1000 ) // Wait for the watching to begin
86
87
os.write.over(workspacePath / " foo1.txt" , " edited-foo1" )
87
88
awaitCompletionMarker(tester, " quxRan1" )
88
89
expectedErr.append(
@@ -92,7 +93,8 @@ object WatchSourceTests extends WatchTests {
92
93
expectedShows.append(
93
94
" Running qux foo contents edited-foo1 initial-foo2 Running qux bar contents initial-bar"
94
95
)
95
-
96
+
97
+ Thread .sleep(1000 ) // Wait for the watching to begin
96
98
os.write.over(workspacePath / " foo2.txt" , " edited-foo2" )
97
99
awaitCompletionMarker(tester, " quxRan2" )
98
100
expectedErr.append(
@@ -103,6 +105,7 @@ object WatchSourceTests extends WatchTests {
103
105
" Running qux foo contents edited-foo1 edited-foo2 Running qux bar contents initial-bar"
104
106
)
105
107
108
+ Thread .sleep(1000 ) // Wait for the watching to begin
106
109
os.write.over(workspacePath / " bar.txt" , " edited-bar" )
107
110
awaitCompletionMarker(tester, " quxRan3" )
108
111
expectedErr.append(
@@ -113,6 +116,7 @@ object WatchSourceTests extends WatchTests {
113
116
" Running qux foo contents edited-foo1 edited-foo2 Running qux bar contents edited-bar"
114
117
)
115
118
119
+ Thread .sleep(1000 ) // Wait for the watching to begin
116
120
os.write.append(workspacePath / " build.mill" , " \n def unrelated = true" )
117
121
awaitCompletionMarker(tester, " initialized1" )
118
122
expectedOut.append(
@@ -124,6 +128,7 @@ object WatchSourceTests extends WatchTests {
124
128
)
125
129
126
130
if (show) expectedOut.append(" {}" )
131
+ Thread .sleep(1000 ) // Wait for the watching to begin
127
132
os.write.over(workspacePath / " watchValue.txt" , " exit" )
128
133
awaitCompletionMarker(tester, " initialized2" )
129
134
expectedOut.append(" Setting up build.mill" )
0 commit comments