Skip to content

Instantly share code, notes, and snippets.

@spmallette
Created November 20, 2020 12:22
Show Gist options
  • Save spmallette/73f0788cb7be47eb1389fbc9846fa762 to your computer and use it in GitHub Desktop.
Save spmallette/73f0788cb7be47eb1389fbc9846fa762 to your computer and use it in GitHub Desktop.
describe("#construct", function () {
it('should not hang if server not present', function() {
const g = traversal().withRemote(new DriverRemoteConnection('ws://localhost:9998/gremlin', {traversalSource: 'g'}));
return g.V().toList().then(function() {
assert.fail("that shouldn't have happened");
}).catch(function(err) {
if (err instanceof AssertionError) throw err;
assert.strictEqual(err, "connection error");
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment