Parcel: hmr and watcher tests failing randomly

Created on 6 Dec 2017  ยท  3Comments  ยท  Source: parcel-bundler/parcel

While working on #50 I had those two tests failing randomly... I did not took the time to understand the issue... Maybe it come from my machine.

 // ...

  hmr
    โœ“ should emit an HMR update for the file that changed (244ms)
    โœ“ should emit an HMR update for all new dependencies along with the changed file (309ms)
Assertion failed: (0), function uv_close, file ../deps/uv/src/unix/core.c, line 182.
error Command failed with signal "SIGABRT".
  // ...

  watcher
    โœ“ should rebuild on file change (223ms)
    โœ“ should re-generate bundle tree when files change (319ms)
    1) should only re-package bundles that changed
    โœ“ should unload assets that are orphaned (295ms)


  60 passing (10s)
  1 failing

  1) watcher should only re-package bundles that changed:

      AssertionError [ERR_ASSERTION]: 1512573179 != 1512573179
      + expected - actual


      at Context.<anonymous> (test/watcher.js:100:12)
      at <anonymous>

Most helpful comment

I've been running into the same problems. I've been looking into them, it seems the uv_close issue is related to sass and if you skip the sass tests you won't get that error anymore

All 3 comments

I've been running into the same problems. I've been looking into them, it seems the uv_close issue is related to sass and if you skip the sass tests you won't get that error anymore

I think the uv_close issue might be https://github.com/paulmillr/chokidar/issues/612

Worked around this issue by disabling FS events on macOS for the tests. Other general test fixes here as well: #74

Was this page helpful?
0 / 5 - 0 ratings