@@ -83,7 +83,6 @@ object WatchSourceTests extends WatchTests {
8383 " Running qux foo contents initial-foo1 initial-foo2 Running qux bar contents initial-bar"
8484 )
8585
86- Thread .sleep(1000 ) // Wait for the watching to begin
8786 os.write.over(workspacePath / " foo1.txt" , " edited-foo1" )
8887 awaitCompletionMarker(tester, " quxRan1" )
8988 expectedErr.append(
@@ -93,8 +92,7 @@ object WatchSourceTests extends WatchTests {
9392 expectedShows.append(
9493 " Running qux foo contents edited-foo1 initial-foo2 Running qux bar contents initial-bar"
9594 )
96-
97- Thread .sleep(1000 ) // Wait for the watching to begin
95+
9896 os.write.over(workspacePath / " foo2.txt" , " edited-foo2" )
9997 awaitCompletionMarker(tester, " quxRan2" )
10098 expectedErr.append(
@@ -105,7 +103,6 @@ object WatchSourceTests extends WatchTests {
105103 " Running qux foo contents edited-foo1 edited-foo2 Running qux bar contents initial-bar"
106104 )
107105
108- Thread .sleep(1000 ) // Wait for the watching to begin
109106 os.write.over(workspacePath / " bar.txt" , " edited-bar" )
110107 awaitCompletionMarker(tester, " quxRan3" )
111108 expectedErr.append(
@@ -116,7 +113,6 @@ object WatchSourceTests extends WatchTests {
116113 " Running qux foo contents edited-foo1 edited-foo2 Running qux bar contents edited-bar"
117114 )
118115
119- Thread .sleep(1000 ) // Wait for the watching to begin
120116 os.write.append(workspacePath / " build.mill" , " \n def unrelated = true" )
121117 awaitCompletionMarker(tester, " initialized1" )
122118 expectedOut.append(
@@ -128,7 +124,6 @@ object WatchSourceTests extends WatchTests {
128124 )
129125
130126 if (show) expectedOut.append(" {}" )
131- Thread .sleep(1000 ) // Wait for the watching to begin
132127 os.write.over(workspacePath / " watchValue.txt" , " exit" )
133128 awaitCompletionMarker(tester, " initialized2" )
134129 expectedOut.append(" Setting up build.mill" )
0 commit comments