Skip to content

Commit 9b214e6

Browse files
committed
revert changes to watcher_test.go
1 parent a5b6be8 commit 9b214e6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

watcher_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ const minTimesToPollForChanges = 3
2424
const maxTimesToPollForChanges = 60
2525

2626
func TestWorkersShouldReloadOnMatchingPattern(t *testing.T) {
27-
sep := string(os.PathSeparator)
28-
watch := []string{"." + sep + "testdata" + sep + "**" + sep + "*.txt"}
29-
t.Log(watch[0])
27+
watch := []string{"./testdata/**/*.txt"}
3028

3129
runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
3230
requestBodyHasReset := pollForWorkerReset(t, handler, maxTimesToPollForChanges)
@@ -35,7 +33,7 @@ func TestWorkersShouldReloadOnMatchingPattern(t *testing.T) {
3533
}
3634

3735
func TestWorkersShouldNotReloadOnExcludingPattern(t *testing.T) {
38-
watch := []string{filepath.Join(".", "testdata", "**", "*.txt")}
36+
watch := []string{"./testdata/**/*.php"}
3937

4038
runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
4139
requestBodyHasReset := pollForWorkerReset(t, handler, minTimesToPollForChanges)

0 commit comments

Comments
 (0)