@@ -93,15 +93,15 @@ describe('Connector Tests', function () {
9393 await connector . close ( )
9494 } )
9595
96- // it('Should be possible to create a Connector with participant qos', async function () {
97- // const xmlProfile = path.join(__dirname, '/../xml/TestConnector.xml')
98- // const connector = new rti.Connector(
99- // 'MyParticipantLibrary::ConnectorWithParticipantQos',
100- // xmlProfile)
101- // expect(connector).to.exist
102- // expect(connector).to.be.instanceOf(rti.Connector)
103- // await connector.close()
104- // })
96+ it ( 'Should be possible to create a Connector with participant qos' , async function ( ) {
97+ const xmlProfile = path . join ( __dirname , '/../xml/TestConnector.xml' )
98+ const connector = new rti . Connector (
99+ 'MyParticipantLibrary::ConnectorWithParticipantQos' ,
100+ xmlProfile )
101+ expect ( connector ) . to . exist
102+ expect ( connector ) . to . be . instanceOf ( rti . Connector )
103+ await connector . close ( )
104+ } )
105105
106106 it ( 'is possible to obtain the current version of Connector' , function ( ) {
107107 const version = rti . Connector . getVersion ( )
@@ -112,17 +112,18 @@ describe('Connector Tests', function () {
112112 // - the build ID of core.1.0
113113 // - the build ID of dds_c.1.0
114114 // - the build ID of lua_binding.1.0
115+ // Each build ID has either 3 or 4 version digits.
115116 // Expect "RTI Connector for JavaScript, version X.X.X"
116117 let regex = / R T I C o n n e c t o r f o r J a v a S c r i p t , v e r s i o n ( [ 0 - 9 ] [ . ] ) { 2 } [ 0 - 9 ] /
117118 expect ( regex . test ( version ) ) . deep . equals ( true )
118119 // Expect "NDDSCORE_BUILD_<VERSION>_<DATE>T<TIMESTAMP>Z"
119- regex = / .* N D D S C O R E _ B U I L D _ ( [ 0 - 9 ] [ . ] ) { 2 } [ 0 - 9 ] _ [ 0 - 9 ] { 8 } T [ 0 - 9 ] { 6 } Z /
120+ regex = / .* N D D S C O R E _ B U I L D _ ( [ 0 - 9 ] [ . ] ) { 2 , 3 } [ 0 - 9 ] _ [ 0 - 9 ] { 8 } T [ 0 - 9 ] { 6 } Z /
120121 expect ( regex . test ( version ) ) . deep . equals ( true )
121122 // Expect "NDDSC_BUILD_<VERSION>_<DATE>T<TIMESTAMP>Z"
122- regex = / .* N D D S C _ B U I L D _ ( [ 0 - 9 ] [ . ] ) { 2 } [ 0 - 9 ] _ [ 0 - 9 ] { 8 } T [ 0 - 9 ] { 6 } Z /
123+ regex = / .* N D D S C _ B U I L D _ ( [ 0 - 9 ] [ . ] ) { 2 , 3 } [ 0 - 9 ] _ [ 0 - 9 ] { 8 } T [ 0 - 9 ] { 6 } Z /
123124 expect ( regex . test ( version ) ) . deep . equals ( true )
124125 // Expect "RTICONNECTOR_BUILD_<VERSION>_<DATE>T<TIMESTAMP>Z"
125- regex = / .* R T I C O N N E C T O R _ B U I L D _ ( [ 0 - 9 ] [ . ] ) { 2 } [ 0 - 9 ] _ [ 0 - 9 ] { 8 } T [ 0 - 9 ] { 6 } Z /
126+ regex = / .* R T I C O N N E C T O R _ B U I L D _ ( [ 0 - 9 ] [ . ] ) { 2 , 3 } [ 0 - 9 ] _ [ 0 - 9 ] { 8 } T [ 0 - 9 ] { 6 } Z /
126127 expect ( regex . test ( version ) ) . deep . equals ( true )
127128 } )
128129
0 commit comments