diff --git a/.kokoro/presubmit/node14/system-test-multiplexed-session.cfg b/.kokoro/presubmit/node14/system-test-multiplexed-session.cfg index 8bf1160cd..aeeace4e8 100644 --- a/.kokoro/presubmit/node14/system-test-multiplexed-session.cfg +++ b/.kokoro/presubmit/node14/system-test-multiplexed-session.cfg @@ -12,6 +12,6 @@ env_vars: { } env_vars: { - key: "GOOGLE_CLOUD_SPANNER_ENABLE_MULTIPLEXED_SESSIONS" + key: "GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS" value: "true" } \ No newline at end of file diff --git a/.kokoro/system-test.sh b/.kokoro/system-test.sh index bb20a4220..2156dbd28 100755 --- a/.kokoro/system-test.sh +++ b/.kokoro/system-test.sh @@ -45,11 +45,7 @@ if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ART trap cleanup EXIT HUP fi -# If tests are running with enabled multiplexed session, configure env -# GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS -if [[ $GOOGLE_CLOUD_SPANNER_ENABLE_MULTIPLEXED_SESSIONS = *"true"* ]]; then - export GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS=true -fi +echo env variable is: $GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION npm run system-test diff --git a/src/session-factory.ts b/src/session-factory.ts index 1559176bc..34f0d7642 100644 --- a/src/session-factory.ts +++ b/src/session-factory.ts @@ -118,6 +118,7 @@ export class SessionFactory ? (this.isMultiplexed = true) : (this.isMultiplexed = false); // Multiplexed sessions should only be created if its enabled. + console.log('mux enabled?: ', this.isMultiplexed); if (this.isMultiplexed) { this.multiplexedSession_.on('error', this.emit.bind(database, 'error')); this.multiplexedSession_.createSession();