Closed jareksl closed 7 years ago
Same problem on iOS:
2017-06-22 14:12:33 - INFO CoordinatedClient: '***TEST_LOGGER result: failed - unknown, error: 'Error', stack: 'CoordinatedClient.prototype.unexpectedResult@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/lib/CoordinatedClient.js:584:13
emit@events.js:98:1
bound@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:62:28
assert@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:245:5
bound@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:62:28
Test.prototype.notok@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:309:1''
2017-06-22 14:12:33 - INFO CoordinatedClient: '***TEST_LOGGER result: failed - unknown, error: 'Error', stack: 'CoordinatedClient.prototype.unexpectedResult@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/lib/CoordinatedClient.js:584:13
emit@events.js:98:1
bound@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:62:28
assert@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:245:5
bound@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:62:28
Test.prototype.notok@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:309:1''
2017-06-22 14:12:33 - INFO CoordinatedClient: '***TEST_LOGGER result: failed - unknown, error: 'Error', stack: 'CoordinatedClient.prototype.unexpectedResult@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/lib/CoordinatedClient.js:584:13
emit@events.js:98:1
bound@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:62:28
assert@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:245:5
bound@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:62:28
Test.prototype.notok@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:309:1''
2017-06-22 14:12:33 - INFO CoordinatedClient: '***TEST_LOGGER result: failed - unknown, error: 'Error', stack: 'CoordinatedClient.prototype.unexpectedResult@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/lib/CoordinatedClient.js:584:13
emit@events.js:98:1
bound@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:62:28
assert@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:245:5
bound@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:62:28
Test.prototype.notok@/private/var/containers/Bundle/Application/06D7FD54-483E-4BE8-B1EC-F18C22193565/ThaliTest.app/www/jxcore/node_modules/tape/lib/test.js:309:1''
2017-06-22 14:12:33 - INFO CoordinatedClient: '***TEST_LOGGER result: passed - discoveryAdvertisingStateUpdateNonTCP is called'
2017-06-22 14:12:33 - ERROR CoordinatedClient: 'failed to run unit tests, platformName: 'ios''
2017-06-22 14:12:33 - DEBUG CoordinatedClient: 'all tests completed'
2017-06-22 14:12:33 - DEBUG CoordinatedClient: 'test client disconnected'
2017-06-22 14:12:33 - DEBUG CoordinatedClient: 'test client succeed'
2017-06-22 14:12:33 - DEBUG CoordinatedThaliTape: 'all tests succeed'
2017-06-22 14:12:33 - DEBUG CoordinatedThaliTape: '****TEST_LOGGER:[PROCESS_ON_EXIT_SUCCESS]****'
2017-06-22 14:12:33 - INFO runTests: 'Finished'
1..82
# tests 82
# pass 82
# ok
The assertion is ok, it fails because I believe this assertion is called after t.end(). We need to make it as promises, and when all of them will resolve, call t.end()
testThaliMobileNative.js - discoveryAdvertisingStateUpdateNonTCP is called throws an error even if the test itself is passing. The assertion fails even if passed
err
isundefined
https://github.com/thaliproject/Thali_CordovaPlugin/blob/master/test/www/jxcore/bv_tests/testThaliMobileNative.js#L1239 See the log below. Full log accessible here https://raw.githubusercontent.com/ThaliTester/TestResults/1265037342651392_Added_skip_function_to_allow_a_test_to_be_skipped_over_jareksl/build.md: