Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Investigate failing unit tests #31

Open
jbeard4 opened this issue Jun 23, 2016 · 0 comments
Open

Investigate failing unit tests #31

jbeard4 opened this issue Jun 23, 2016 · 0 comments

Comments

@jbeard4
Copy link
Owner

jbeard4 commented Jun 23, 2016

Pertains to PR #30.

See failing build: https://travis-ci.org/jbeard4/SCION-CORE/builds/139825454

Steps to reproduce:

jbeard4@Jacobs-MacBook-Pro:~/workspace/scion/SCION-CORE$ npm test

> [email protected] test /Users/jbeard4/workspace/scion/SCION-CORE
> cd test && nodeunit harness.js


harness.js
✔ ./assign-current-small-step/test0.test.json
✔ ./assign-current-small-step/test1.test.json
✔ ./assign-current-small-step/test2.test.json
✔ ./assign-current-small-step/test3.test.json
b, x:6
b1, x:30
✔ ./assign-current-small-step/test4.test.json
entering A
exiting A
doing A->B transition
entering A
✔ ./atom3-basic-tests/m0.test.json
entering state A
exiting state A
triggered by e1
triggered by e2
entering state A
✔ ./atom3-basic-tests/m1.test.json
entering state A
exiting state A
triggered by e1
triggered by e2
entering state A
✔ ./atom3-basic-tests/m2.test.json
entering state A
exiting state A
triggered by e1
triggered by e2
entering state A
exiting state A
triggered by e1
entering state C
✔ ./atom3-basic-tests/m3.test.json
✔ ./basic/basic0.test.json
✔ ./basic/basic1.test.json
✔ ./basic/basic2.test.json
✔ ./cond-js/test0.test.json
✔ ./cond-js/test1.test.json
✔ ./cond-js/test2.test.json
✔ ./cond-js/TestConditionalTransition.test.json
✔ ./default-initial-state/initial1.test.json
✔ ./default-initial-state/initial2.test.json
✔ ./documentOrder/documentOrder0.test.json
before [ 0, 0 ]
after [ 50, 10 ]
✔ ./foreach/test1.test.json
✔ ./hierarchy/hier0.test.json
✔ ./hierarchy/hier1.test.json
✔ ./hierarchy/hier2.test.json
✔ ./hierarchy+documentOrder/test0.test.json
✔ ./hierarchy+documentOrder/test1.test.json
✔ ./history/history0.test.json
✔ ./history/history1.test.json
✔ ./history/history2.test.json
✔ ./history/history3.test.json
✔ ./history/history4.test.json
✔ ./history/history5.test.json
b, x:6
b2, x:30
b3, x:210
b, x:630
b3, x:4410
✔ ./history/history6.test.json
x 0
x 10
x 10
x 20
✖ ./if-else/test0.test.json

TypeError: Cannot read property 'id' of undefined
    at EventEmitter.extend._performSmallStep (/Users/jbeard4/workspace/scion/SCION-CORE/lib/scion.js:809:45)
    at EventEmitter.extend._performBigStep (/Users/jbeard4/workspace/scion/SCION-CORE/lib/scion.js:723:48)
    at EventEmitter.Statechart.gen (/Users/jbeard4/workspace/scion/SCION-CORE/lib/scion.js:1322:14)
    at ns (/Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:58:41)
    at /Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:78:17
    at iterate (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/async/lib/async.js:123:13)
    at Object.async.eachSeries (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/async/lib/async.js:145:9)
    at Object.exports.(anonymous function) (/Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:47:15)
    at Object.<anonymous> (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/nodeunit/lib/core.js:236:16)
    at /Users/jbeard4/workspace/scion/SCION-CORE/node_modules/nodeunit/lib/core.js:236:16

✔ ./internal-transitions/test0.test.json
✖ ./internal-transitions/test1.test.json

Assertion Message: next configuration after sending event t3
AssertionError: [ 'c' ] deepEqual [ 'd' ]
    at Object.deepEqual (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/nodeunit/lib/types.js:83:39)
    at ns (/Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:62:19)
    at /Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:78:17
    at iterate (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/async/lib/async.js:123:13)
    at doNTCallback0 (node.js:419:9)
    at process._tickCallback (node.js:348:13)

✔ ./more-parallel/test0.test.json
✔ ./more-parallel/test1.test.json
✖ ./more-parallel/test10.test.json

Assertion Message: next configuration after sending event t2
AssertionError: [ 'a', 'b' ] deepEqual [ 'c' ]
    at Object.deepEqual (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/nodeunit/lib/types.js:83:39)
    at ns (/Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:62:19)
    at /Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:78:17
    at iterate (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/async/lib/async.js:123:13)
    at doNTCallback0 (node.js:419:9)
    at process._tickCallback (node.js:348:13)

Assertion Message: next configuration after sending event t3
AssertionError: [ 'a', 'b' ] deepEqual [ 'd' ]
    at Object.deepEqual (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/nodeunit/lib/types.js:83:39)
    at ns (/Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:62:19)
    at /Users/jbeard4/workspace/scion/SCION-CORE/test/harness.js:78:17
    at iterate (/Users/jbeard4/workspace/scion/SCION-CORE/node_modules/async/lib/async.js:123:13)
    at doNTCallback0 (node.js:419:9)
    at process._tickCallback (node.js:348:13)

✔ ./more-parallel/test2.test.json
✔ ./more-parallel/test3.test.json
✔ ./more-parallel/test4.test.json
✔ ./more-parallel/test5.test.json
✔ ./more-parallel/test6.test.json
✔ ./more-parallel/test7.test.json
✔ ./more-parallel/test8.test.json
✔ ./more-parallel/test9.test.json
✔ ./multiple-events-per-transition/test1.test.json
✔ ./parallel/test0.test.json
✔ ./parallel/test1.test.json
✔ ./parallel/test2.test.json
✔ ./parallel/test3.test.json
✔ ./parallel+interrupt/test0.test.json
✔ ./parallel+interrupt/test1.test.json
✔ ./parallel+interrupt/test10.test.json
✔ ./parallel+interrupt/test11.test.json
✔ ./parallel+interrupt/test12.test.json
✔ ./parallel+interrupt/test13.test.json
✔ ./parallel+interrupt/test14.test.json
✔ ./parallel+interrupt/test15.test.json
✔ ./parallel+interrupt/test16.test.json
✔ ./parallel+interrupt/test17.test.json
✔ ./parallel+interrupt/test18.test.json
✔ ./parallel+interrupt/test19.test.json
✔ ./parallel+interrupt/test2.test.json
✔ ./parallel+interrupt/test20.test.json
✔ ./parallel+interrupt/test21.test.json
✔ ./parallel+interrupt/test22.test.json
✔ ./parallel+interrupt/test23.test.json
✔ ./parallel+interrupt/test24.test.json
✔ ./parallel+interrupt/test25.test.json
✔ ./parallel+interrupt/test26.test.json
✔ ./parallel+interrupt/test27.test.json
✔ ./parallel+interrupt/test28.test.json
✔ ./parallel+interrupt/test29.test.json
✔ ./parallel+interrupt/test3.test.json
✔ ./parallel+interrupt/test30.test.json
✔ ./parallel+interrupt/test31.test.json
✔ ./parallel+interrupt/test4.test.json
✔ ./parallel+interrupt/test5.test.json
✔ ./parallel+interrupt/test6.test.json
✔ ./parallel+interrupt/test7.test.json
✔ ./parallel+interrupt/test8.test.json
✔ ./parallel+interrupt/test9.test.json
✔ ./script/test0.test.json
✔ ./script/test1.test.json
✔ ./script/test2.test.json
✔ ./scxml-prefix-event-name-matching/star0.test.json
✔ ./scxml-prefix-event-name-matching/test0.test.json
✔ ./scxml-prefix-event-name-matching/test1.test.json
✔ ./send-internal/test0.test.json
✔ ./targetless-transition/test0.test.json
✔ ./targetless-transition/test1.test.json
✔ ./targetless-transition/test2.test.json
2
8
5
100
✔ ./targetless-transition/test3.test.json

FAILURES: 4/251 assertions failed (334ms)

Tests pass on master, so this might be a regression.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant