File tree Expand file tree Collapse file tree 2 files changed +1
-43
lines changed
bolt-connection/test/rediscovery Expand file tree Collapse file tree 2 files changed +1
-43
lines changed Original file line number Diff line number Diff line change @@ -136,48 +136,6 @@ describe('#unit Rediscovery', () => {
136
136
}
137
137
} )
138
138
139
- xit ( 'should reject with PROCEDURE_NOT_FOUND_CODE when it happens ' , async ( ) => {
140
- const routerAddress = ServerAddress . fromUrl ( 'bolt://localhost:1235' )
141
- const expectedError = newError (
142
- `Server at ${ routerAddress . asHostPort ( ) } can't perform routing. Make sure you are connecting to a causal cluster` ,
143
- SERVICE_UNAVAILABLE
144
- )
145
- try {
146
- const initialAddress = '127.0.0.1'
147
- const routingContext = { context : '1234 ' }
148
-
149
- const connection = new FakeConnection ( ) . withRequestRoutingInformationMock (
150
- fakeOnError ( newError ( '1de' , PROCEDURE_NOT_FOUND_CODE ) )
151
- )
152
- await lookupRoutingTableOnRouter ( {
153
- initialAddress,
154
- routingContext,
155
- connection,
156
- routerAddress
157
- } )
158
-
159
- fail ( 'it should fail' )
160
- } catch ( error ) {
161
- expect ( error ) . toEqual ( expectedError )
162
- }
163
- } )
164
-
165
- xit ( 'should return null when it happens an unexpected error ocorrus' , async ( ) => {
166
- const initialAddress = '127.0.0.1'
167
- const routingContext = { context : '1234 ' }
168
-
169
- const connection = new FakeConnection ( ) . withRequestRoutingInformationMock (
170
- fakeOnError ( newError ( '1de' , 'abc' ) )
171
- )
172
- const routingTable = await lookupRoutingTableOnRouter ( {
173
- initialAddress,
174
- routingContext,
175
- connection
176
- } )
177
-
178
- expect ( routingTable ) . toEqual ( null )
179
- } )
180
-
181
139
it ( 'should throw PROTOCOL_ERROR if the routing table is invalid' , async ( ) => {
182
140
runWithClockAt ( Date . now ( ) , async ( ) => {
183
141
try {
Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ describe('#integration driver', () => {
378
378
expect ( error . code ) . toEqual ( neo4j . error . SERVICE_UNAVAILABLE )
379
379
expect ( error . message ) . toEqual (
380
380
`Server at ${ sharedNeo4j . hostname } :7687 can't perform routing. ` +
381
- 'Make sure you are connecting to a causal cluster. '
381
+ 'Make sure you are connecting to a causal cluster'
382
382
)
383
383
} finally {
384
384
await session . close ( )
You can’t perform that action at this time.
0 commit comments