javascript npm test error

0 views
Skip to first unread message

patb...@gmail.com

unread,
Mar 3, 2016, 5:36:36 PM3/3/16
to Stardog
Hi,

I get this following error when I run npm test from the stardog.js folder. Not sure how to fix this.

  86 passing (5s)

  1 failing


  1) Getting the query plan of a Query A response with the query plan should not be empty:

     Uncaught Error: expected 'Slice(offset=0, limit=10) [cardinality=6]\n  Projection(?s) [cardinality=6]\n    Scan[SC](?s, _, _) [cardinality=6]\n' to contain 'Scan[SPOC](?s, ?p, ?o)'


      at Assertion.assert (/Users/patrick/Documents/stardog.js/node_modules/expect.js/index.js:96:13)

      at Assertion.string.Assertion.contain (/Users/patrick/Documents/stardog.js/node_modules/expect.js/index.js:410:12)

      at /Users/patrick/Documents/stardog.js/test/explain.spec.js:47:37

      at Request.fnResponseHandler (/Users/patrick/Documents/stardog.js/js/stardog.js:186:21)

      at emitTwo (events.js:87:13)

      at Request.emit (events.js:172:7)

      at Request.mixin._fireSuccess (/Users/patrick/Documents/stardog.js/node_modules/restler/lib/restler.js:226:10)

      at /Users/patrick/Documents/stardog.js/node_modules/restler/lib/restler.js:158:20

      at Request.mixin._encode (/Users/patrick/Documents/stardog.js/node_modules/restler/lib/restler.js:197:9)

      at /Users/patrick/Documents/stardog.js/node_modules/restler/lib/restler.js:154:16

      at Gunzip.onEnd (zlib.js:227:5)

      at emitNone (events.js:72:20)

      at Gunzip.emit (events.js:166:7)

      at endReadableNT (_stream_readable.js:905:12)

      at nextTickCallbackWith2Args (node.js:437:9)

      at process._tickCallback (node.js:351:17)


Thanks You

Michael Grove

unread,
Mar 4, 2016, 6:58:57 AM3/4/16
to stardog
On Thu, Mar 3, 2016 at 5:36 PM, <patb...@gmail.com> wrote:
Hi,

I get this following error when I run npm test from the stardog.js folder. Not sure how to fix this.

  86 passing (5s)

  1 failing


  1) Getting the query plan of a Query A response with the query plan should not be empty:

     Uncaught Error: expected 'Slice(offset=0, limit=10) [cardinality=6]\n  Projection(?s) [cardinality=6]\n    Scan[SC](?s, _, _) [cardinality=6]\n' to contain 'Scan[SPOC](?s, ?p, ?o)'


That looks like a failure due to changes in the query planner in Stardog. Using String#contains for those kinds of checks can be brittle in these cases. As far as I can tell, the plan is perfectly reasonable and probably expected for the query.

We'd appreciate a PR to update the test!

Cheers,

Mike
 

      at Assertion.assert (/Users/patrick/Documents/stardog.js/node_modules/expect.js/index.js:96:13)

      at Assertion.string.Assertion.contain (/Users/patrick/Documents/stardog.js/node_modules/expect.js/index.js:410:12)

      at /Users/patrick/Documents/stardog.js/test/explain.spec.js:47:37

      at Request.fnResponseHandler (/Users/patrick/Documents/stardog.js/js/stardog.js:186:21)

      at emitTwo (events.js:87:13)

      at Request.emit (events.js:172:7)

      at Request.mixin._fireSuccess (/Users/patrick/Documents/stardog.js/node_modules/restler/lib/restler.js:226:10)

      at /Users/patrick/Documents/stardog.js/node_modules/restler/lib/restler.js:158:20

      at Request.mixin._encode (/Users/patrick/Documents/stardog.js/node_modules/restler/lib/restler.js:197:9)

      at /Users/patrick/Documents/stardog.js/node_modules/restler/lib/restler.js:154:16

      at Gunzip.onEnd (zlib.js:227:5)

      at emitNone (events.js:72:20)

      at Gunzip.emit (events.js:166:7)

      at endReadableNT (_stream_readable.js:905:12)

      at nextTickCallbackWith2Args (node.js:437:9)

      at process._tickCallback (node.js:351:17)


Thanks You

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Reply all
Reply to author
Forward
0 new messages