DiUS / pact-consumer-js-dsl

*DEPRECATED* A Javascript DSL for creating pacts, superceded by Pact JS
https://github.com/pact-foundation/pact-js
Other
56 stars 26 forks source link

Tests fail randomly with XMLHttpRequest Exception 101 #16

Open bethesque opened 9 years ago

bethesque commented 9 years ago

No code changes seem to cause this.

pact-consumer-js-dsl $ node_modules/.bin/gulp run-tests
[16:41:12] Using gulpfile ~/Work/rea/biq/pact-consumer-js-dsl/gulpfile.js
[16:41:12] Starting 'clear'...
[16:41:13] Finished 'clear' after 1.1 s
[16:41:13] Starting 'clean'...
[16:41:14] Finished 'clean' after 510 ms
[16:41:14] Starting 'build'...
[16:41:14] gulp-size: total 5.29 kB
[16:41:14] Finished 'build' after 779 ms
[16:41:14] Starting 'run-tests'...
[16:41:14] Finished 'run-tests' after 54 ms
INFO [karma]: Karma v0.12.24 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket DJVs6751cVbbEz4sqeAb with id 36572852
PhantomJS 1.9.8 (Mac OS X) MockService a successful match using argument lists returns the mocked response FAILED
  NETWORK_ERR: NETWORK_ERR: XMLHttpRequest Exception 101 in /some-path/pact-consumer-js-dsl/src/mockService.js (line 38)
  Error: NETWORK_ERR: XMLHttpRequest Exception 101
      at /some-path/pact-consumer-js-dsl/src/mockService.js:38
      at /some-path/pact-consumer-js-dsl/spec/mock_service_spec.js:14
      at /some-path/pact-consumer-js-dsl/node_modules/karma-jasmine/lib/adapter.js:166
      at http://localhost:9876/karma.js:189
      at http://localhost:9876/context.html:45
  NETWORK_ERR: NETWORK_ERR: XMLHttpRequest Exception 101 in /some-path/pact-consumer-js-dsl/src/mockService.js (line 53)
  Error: NETWORK_ERR: XMLHttpRequest Exception 101
      at /some-path/pact-consumer-js-dsl/src/mockService.js:53
mboudreau commented 9 years ago

@bethesque have you see this happen since the refactor?

bethesque commented 9 years ago

Not yet.