Created
November 20, 2020 12:22
-
-
Save spmallette/73f0788cb7be47eb1389fbc9846fa762 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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