Skip to content

Commit 1fd65fc

Browse files
committed
MLE-23607 : Node Client Sparql test fails for 12-nightly on Jenkins
1 parent d5310c1 commit 1fd65fc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test-complete/nodejs-optic-from-sparql.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,11 @@ describe('Nodejs Optic from sparql test', function () {
314314
db.rows.explain(output, 'json')
315315
.then(function (output) {
316316
expect(output.node).to.equal('plan');
317-
if (serverConfiguration.serverVersion >= 11) {
318-
expect(output.expr.expr.from['default-graph'][0].value).to.equal('/optic/sparql/test/companies.ttl');
319-
} else {
320-
expect(output.expr.from['default-graph'][0].value).to.equal('/optic/sparql/test/companies.ttl');
321-
}
317+
const defaultGraph = (serverConfiguration.serverVersion >= 12)?output.expr.expr.from['default-graph'][0]:
318+
((serverConfiguration.serverVersion >= 11)?output.expr.expr.from['default-graph'][0].value:output.expr.from['default-graph'][0].value);
319+
expect(defaultGraph).to.equal('/optic/sparql/test/companies.ttl');
322320
done();
323-
}, done).catch(error => done(error));
321+
}).catch(error => done(error));
324322
});
325323

326324
it('TEST 16 - negative case', function (done) {

0 commit comments

Comments
 (0)