Skip to content

Commit

Permalink
tests: changes for kokoro pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
alkatrivedi committed Jan 21, 2025
1 parent b22b352 commit e8354e0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .kokoro/presubmit/node14/system-test-multiplexed-session.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .kokoro/system-test.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions test/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,13 @@ describe('Database', () => {

muxEnabled.forEach(isMuxEnabled => {
describe(
'when GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION is ' +
'when GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS is ' +
`${isMuxEnabled ? 'enabled' : 'disable'}`,
() => {
before(() => {
isMuxEnabled
? (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION = 'true')
: (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION =
? (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS = 'true')
: (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS =
'false');
});

Expand Down Expand Up @@ -1930,8 +1930,8 @@ describe('Database', () => {
() => {
before(() => {
isMuxEnabled
? (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION = 'true')
: (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION =
? (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS = 'true')
: (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS =
'false');
});
beforeEach(() => {
Expand Down Expand Up @@ -2365,13 +2365,13 @@ describe('Database', () => {

muxEnabled.forEach(isMuxEnabled => {
describe(
'when GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION is ' +
'when GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS is ' +
`${isMuxEnabled ? 'enabled' : 'disable'}`,
() => {
before(() => {
isMuxEnabled
? (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION = 'true')
: (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSION =
? (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS = 'true')
: (process.env.GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS =
'false');
});

Expand Down

0 comments on commit e8354e0

Please sign in to comment.