Skip to content

Commit eb745b1

Browse files
authored
Fix flaky fanotify cross-watcher test (#65609)
1 parent 1d0c7e9 commit eb745b1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎tsc/internal/fswatch/fanotify_linux_test.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ func TestFanotifyCrossWatcherSameFs(t *testing.T) {
112112
if err := os.WriteFile(pathA, []byte("changed"), 0o644); err != nil {
113113
t.Fatal(err)
114114
}
115-
gotA := rA.gather(rA.deadline(), 200*time.Millisecond)
116-
assertEventSet(t, gotA, []wantEvent{{EventUpdate, pathA}})
115+
expectContains(t, rA, EventUpdate, pathA)
117116

118117
if gotB := rB.drainQuiet(200 * time.Millisecond); len(gotB) != 0 {
119118
t.Fatalf("watcher B got phantom events: %v", toWantEvents(gotB))

0 commit comments

Comments
 (0)