Closed NoahTheDuke closed 4 months ago
Hi @NoahTheDuke, this test is one of the flakier ones in our suite, so it's not too surprising, unfortunately.
Here's a cleaner diff of actual versus expected:
I think there's a timing issue that causes the test to only be run after the file is changed and then run again, rather than being run once before and once after, which is what we'd expect and the behavior we're trying to test. It is being run twice, so I presume the actual functionality is still solid, and this test failure doesn't represent a real bug.
Attempted to reproduce on OSX 14.1.1 on a Apple M1 Pro by running Kaocha in watch mode on git@github.com:lambdaisland/deep-diff2.git
First to verify watch mode was running smoothly I'd make small change to a file in tests
upon saving change I'd verify Kaocha ran and reported the error. Then, I'd undo the change and save again to see if I could get Kaocha to replicate the behavior reported. For each version of java I ran this experiment ~5 times.
First tried to reproduce on my usual setup:
javac javac 18.0.1.1
Clojure CLI version version "1.11.1.1435"
Then noticed that the version of Java reported by OP was 11 so downloaded older version and attempted to replicate with same java version.
javac javac 11.0.21
Clojure CLI version version "1.11.1.1435"
Started to go down the rabbit hole of replicating clojure versions but since that requires uninstalling / reinstalling using a custom home-brew...with such a small diff decided not worth the effort without further evidence. Was not able to successfully replicate.
Hey friends, when I run the
kaocha.watch-test/watch-test
, I get the failure below. This happens when Igit clone ...kaocha.git && cd kaocha && bin/kaocha
, so before I've made any changes. Given that the tests pass in CI, I'm not sure what's wrong.