opengrid icon indicating copy to clipboard operation
opengrid copied to clipboard

Unable to pass gulp tests

Open smartinsightsfromdata opened this issue 8 years ago • 3 comments

I do:

opengrid e$ gulp test --full-trace

But I get an error (maybe done() is missing as suggested in the rror message?):

[18:18:34] Using gulpfile ~/engines/opengrid/gulpfile.js
[18:18:34] Starting 'test'...


  session and security--
    login--
      1) "before each" hook for "must show login form and hide app container on showLogin"

  quick search--
    quick search factory--
      ✓ must return LatLng as quick search processor for input search
      ✓ must return FlexData quick search processor for input search
      ✓ must return FlexData quick search processor for input search
      ✓ must return Place/Address quick search processor for input search
    tweets quick search processor
      ✓ must call success callback on success
      ✓ must call error callback on failure
      ✓ must pass data intact to success callback
      ✓ must throw a "bad syntax" exception
    weather quick search processor
      ✓ must call success callback on success
      ✓ must call error callback on failure
      ✓ must pass data intact to success callback
    flex search builder
      ✓ must return "tweet" as trigger word
      ✓ must accept trigger word without filter
      ✓ must return empty filter object if no filter is specified
      ✓ must return "tweet" as trigger word even with leading whitespace
      ✓ must return true if input is valid flex query and trigger word is valid
      ✓ must return false if input is a valid flex query but trigger word is invalid
      ✓ must return correct simple filter
      ✓ must return correct simple filter with quotes
      ✓ must return "k1:v1" as param key-value pair
      ✓ must return "k1:v1" as param key-value pair even with extraneous whitespaces in between values
      ✓ must return correct key-value pairs with multiple params
      ✓ must return correct key-value pairs with multiple params and extraneous whitespaces
      ✓ must return correct key-value pairs with multiple params and extraneous whitespaces and double-quoted values
      ✓ must return correct max with simple filter and max specified
      ✓ must return default max with param filter and max specified
      ✓ must return 0 when max not specified
      ✓ must return expected filter based on multiple params
      ✓ must throw a "Missing closing quote" exception when hanging quotes are found - Case 1
      ✓ must throw a "Missing closing quote" exception when hanging quotes are found - Case 2
      ✓ must throw a "Invalid quick search input" exception when hanging quotes are found on key-value params - Case 3
      ✓ must throw a "Invalid quick search input" exception when incomplete query spec is encountered (Case 1)
      ✓ must throw a "Invalid quick search input" exception when incomplete query spec is encountered (Case 2)
    flex data quick search processor
      ✓ must return true if input is valid flex query and trigger word is valid
      ✓ must return true if input is valid flex query and trigger aliases are used
      ✓ must return false if input is a valid flex query but trigger word is invalid
      ✓ must return correct dataset given trigger word or alias
      ✓ must resolve column names correctly when using column aliases and dataset uses qualified column names
      ✓ must resolve column names correctly when not using column aliases
    latlng quick search processor
      ✓ must return exactly 2 data points
      ✓ must throw a "bad syntax" exception
    place quick search processor
      ✓ must return exactly 2 data points
    quick search - general
      ✓ must return graceful error on bad query syntax
      ✓ must return graceful error on search timeout
      ✓ must return graceful error when service is unavailable


  45 passing (3s)
  1 failing

  1) session and security-- "before each" hook for "must show login form and hide app container on showLogin":
     timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.




[18:18:38] 'test' errored after 4.15 s
[18:18:38] Error in plugin 'gulp-mocha-phantomjs'
test failed

smartinsightsfromdata avatar Jan 19 '16 18:01 smartinsightsfromdata

@smartinsightsfromdata We will have to try to recreate this. Does this happen all the time? Or is this a random occurence? Could be specific to your environment. All tests pass on both the Windows and Unix continuous integration services that we use for OpenGrid.

rladines avatar Jan 19 '16 19:01 rladines

Also, which OS are you using?

tomschenkjr avatar Jan 19 '16 20:01 tomschenkjr

I'm using a macbook pro with OSX 10.11.2 (15C50). The error happens all the time.

See below for npm:

opengrid e$ npm version
{ OpenGrid: '0.1.0',
  npm: '3.3.12',
  ares: '1.10.1-DEV',
  http_parser: '2.6.0',
  icu: '56.1',
  modules: '47',
  node: '5.4.0',
  openssl: '1.0.2e',
  uv: '1.8.0',
  v8: '4.6.85.31',
  zlib: '1.2.8' }

I'm (hopefully) following the instruction. E.g. the error happens before any setting on mongodb etc when I do gulp release

smartinsightsfromdata avatar Jan 19 '16 20:01 smartinsightsfromdata