@@ -70,7 +70,7 @@ describe('Data access tests with a pre-populated input', function () {
7070 } catch ( err ) {
7171 console . log ( 'Caught err: ' + err )
7272 // Fail the test
73- expect ( true ) . to . deep . equals ( false )
73+ throw ( err )
7474 }
7575 // Write data on the the output
7676 output . instance . setFromJson ( testJsonObject )
@@ -81,7 +81,7 @@ describe('Data access tests with a pre-populated input', function () {
8181 } catch ( err ) {
8282 console . log ( 'Caught err: ' + err )
8383 // Fail the test
84- expect ( true ) . to . deep . equals ( false )
84+ throw ( err )
8585 }
8686 // Take the data on the input so that we can access it from the test
8787 prepopulatedInput . take ( )
@@ -388,7 +388,7 @@ describe('Tests with a testOutput and testInput', () => {
388388 expect ( newMatches ) . to . deep . equals ( 1 )
389389 } catch ( err ) {
390390 console . log ( 'Caught err ' + err )
391- expect ( true ) . to . deep . equals ( false )
391+ throw ( err )
392392 }
393393 } )
394394
@@ -512,7 +512,7 @@ describe('Tests with a testOutput and testInput', () => {
512512 await testInput . wait ( testExpectSuccessTimeout )
513513 } catch ( err ) {
514514 console . log ( 'Caught err: ' + err )
515- expect ( true ) . to . deep . equals ( false )
515+ throw ( err )
516516 }
517517 testInput . take ( )
518518 const received = testInput . samples . get ( 0 ) . get ( 'my_int_sequence' )
@@ -531,7 +531,7 @@ describe('Tests with a testOutput and testInput', () => {
531531 await testInput . wait ( testExpectSuccessTimeout )
532532 } catch ( err ) {
533533 console . log ( 'Caught error: ' + err )
534- expect ( true ) . to . deep . equals ( false )
534+ throw ( err )
535535 }
536536 testInput . take ( )
537537 const received = testInput . samples . get ( 0 ) . get ( 'my_point_sequence' )
@@ -545,7 +545,7 @@ describe('Tests with a testOutput and testInput', () => {
545545 await testInput . wait ( testExpectSuccessTimeout )
546546 } catch ( err ) {
547547 console . log ( 'Caught error: ' + err )
548- expect ( true ) . to . deep . equals ( false )
548+ throw ( err )
549549 }
550550 testInput . take ( )
551551 const sample = testInput . samples . get ( 0 )
@@ -1017,14 +1017,14 @@ describe('Tests with two readers and two writers', () => {
10171017 expect ( newMatches ) . to . deep . equals ( 1 )
10181018 } catch ( err ) {
10191019 console . log ( 'Caught err: ' + err )
1020- expect ( true ) . to . deep . equals ( false )
1020+ throw ( err )
10211021 }
10221022 try {
10231023 const newMatches = await testOutput2 . waitForSubscriptions ( testExpectSuccessTimeout )
10241024 expect ( newMatches ) . to . deep . equals ( 1 )
10251025 } catch ( err ) {
10261026 console . log ( 'Caught err: ' + err )
1027- expect ( true ) . to . deep . equals ( false )
1027+ throw ( err )
10281028 }
10291029 } )
10301030
@@ -1041,7 +1041,7 @@ describe('Tests with two readers and two writers', () => {
10411041 try {
10421042 await connector . wait ( testExpectFailureTimeout )
10431043 console . log ( 'Expected connector.wait to timeout but it did not' )
1044- expect ( true ) . to . deep . equals ( false )
1044+ throw ( err )
10451045 } catch ( err ) {
10461046 expect ( err ) . to . be . an . instanceof ( rti . TimeoutError )
10471047 }
@@ -1051,7 +1051,7 @@ describe('Tests with two readers and two writers', () => {
10511051 try {
10521052 await testInput1 . wait ( testExpectFailureTimeout )
10531053 console . log ( 'Expected testInput1.wait to timeout but it did not' )
1054- expect ( true ) . to . deep . equals ( false )
1054+ throw ( err )
10551055 } catch ( err ) {
10561056 expect ( err ) . to . be . an . instanceof ( rti . TimeoutError )
10571057 }
@@ -1061,7 +1061,7 @@ describe('Tests with two readers and two writers', () => {
10611061 try {
10621062 await testInput2 . wait ( testExpectFailureTimeout )
10631063 console . log ( 'Expected testInput2.wait to timeout but it did not' )
1064- expect ( true ) . to . deep . equals ( false )
1064+ throw ( err )
10651065 } catch ( err ) {
10661066 expect ( err ) . to . be . an . instanceof ( rti . TimeoutError )
10671067 }
@@ -1073,7 +1073,7 @@ describe('Tests with two readers and two writers', () => {
10731073 await connector . wait ( testExpectSuccessTimeout )
10741074 } catch ( err ) {
10751075 console . log ( 'Caught err: ' + err )
1076- expect ( true ) . to . deep . equals ( false )
1076+ throw ( err )
10771077 }
10781078 } )
10791079
@@ -1083,7 +1083,7 @@ describe('Tests with two readers and two writers', () => {
10831083 await testInput1 . wait ( testExpectSuccessTimeout )
10841084 } catch ( err ) {
10851085 console . log ( 'Caught err: ' + err )
1086- expect ( true ) . to . deep . equals ( false )
1086+ throw ( err )
10871087 }
10881088 } )
10891089
@@ -1092,7 +1092,7 @@ describe('Tests with two readers and two writers', () => {
10921092 try {
10931093 await testInput2 . wait ( testExpectFailureTimeout )
10941094 console . log ( 'Expected testInput2.wait to timeout but it did not' )
1095- expect ( true ) . to . deep . equals ( false )
1095+ throw ( err )
10961096 } catch ( err ) {
10971097 expect ( err ) . to . be . an . instanceof ( rti . TimeoutError )
10981098 }
@@ -1104,7 +1104,7 @@ describe('Tests with two readers and two writers', () => {
11041104 await connector . wait ( testExpectSuccessTimeout )
11051105 } catch ( err ) {
11061106 console . log ( 'Caught err: ' + err )
1107- expect ( true ) . to . deep . equals ( false )
1107+ throw ( err )
11081108 }
11091109 } )
11101110
@@ -1114,7 +1114,7 @@ describe('Tests with two readers and two writers', () => {
11141114 await testInput2 . wait ( testExpectSuccessTimeout )
11151115 } catch ( err ) {
11161116 console . log ( 'Caught err: ' + err )
1117- expect ( true ) . to . deep . equals ( false )
1117+ throw ( err )
11181118 }
11191119 } )
11201120
@@ -1123,7 +1123,7 @@ describe('Tests with two readers and two writers', () => {
11231123 try {
11241124 await testInput1 . wait ( testExpectFailureTimeout )
11251125 console . log ( 'Expected testInput2.wait to timeout but it did not' )
1126- expect ( true ) . to . deep . equals ( false )
1126+ throw ( err )
11271127 } catch ( err ) {
11281128 expect ( err ) . to . be . an . instanceof ( rti . TimeoutError )
11291129 }
0 commit comments