mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
f3f39a23a3
* daml-assistant tests: fix flaky test on Windows ``` bazel test //daml-assistant:test --test_arg=--quickcheck-replay=425714 ``` failed on Windows in the test-case: ``` tail . ascendents == ascendents . takeDirectory ``` In that case the two path components given two the test case shrink to `p1 = "a"` and `p2 = "\\"`. Confusingly, on Windows ``` isRelative "\\" == True ``` while ``` "a" </> "\\" = "\\" ``` This is documented behaviour on Windows, see [1] and [2]. Using `p1 </> p2 /= p2` instead of `isRelative p2` works around this. [1]: https://hackage.haskell.org/package/filepath-1.4.2.1/docs/System-FilePath-Posix.html#v:-60--47--62- [2]: https://hackage.haskell.org/package/filepath-1.4.2.1/docs/System-FilePath-Posix.html#v:isRelative * Fix ascendants test group name `ascendants` is defined in `DA.Daml.Project.Util`, not `DA.Daml.Assistant`. CHANGELOG_BEGIN CHANGELOG_END Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io> |
||
---|---|---|
.. | ||
Tests.hs |