You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2020/04/15 12:37:50 UTC

[tinkerpop] 01/04: Use UUID in test for session name in javascript CTR

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit 1871a0577497de6b813d1e45f7719fbd87a5db2a
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Wed Apr 15 07:53:15 2020 -0400

    Use UUID in test for session name in javascript CTR
---
 .../src/main/javascript/gremlin-javascript/test/helper.js             | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/helper.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/helper.js
index 72708c0..fb01b2d 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/test/helper.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/test/helper.js
@@ -22,6 +22,7 @@
  */
 'use strict';
 
+const utils = require('../lib/utils');
 const DriverRemoteConnection = require('../lib/driver/driver-remote-connection');
 const Client = require('../lib/driver/client');
 const PlainTextSaslAuthenticator = require('../lib/driver/auth/plain-text-sasl-authenticator');
@@ -48,5 +49,6 @@ exports.getClient = function getClient(traversalSource) {
 };
 
 exports.getSessionClient = function getSessionClient(traversalSource) {
-  return new Client(serverUrl, { 'traversalSource': traversalSource, 'session': 'unique-string-id'});
+  const sessionId = utils.getUuid();
+  return new Client(serverUrl, { 'traversalSource': traversalSource, 'session': sessionId.toString() });
 };