I wrote some tests for a feature using fsnotify and now I have a file that gets deleted every now and then during those tests. It drives me nuts:
This is the problem:
alex@melanobombus ~/s/oddmu> make test
go test .
ok alexschroeder.ch/cgit/oddmu 0.621s
alex@melanobombus ~/s/oddmu> ls view.html
ls: cannot access 'view.html': No such file or directory
Restore the file, run the test again:
alex@melanobombus ~/s/oddmu> make test; ls view.html
go test .
ok alexschroeder.ch/cgit/oddmu 0.587s
view.html
Haven't had a Heisenbug in a long time. I wonder what this is all about.
https://src.alexschroeder.ch/oddmu.git