Skip to content

Commit de80308

Browse files
test(spanner): Fix Spanner presubmit trampoline and system tests (#8327)
1 parent 2503957 commit de80308

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

handwritten/spanner/.kokoro/trampoline_v2.sh

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

handwritten/spanner/.trampolinerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then
4949
fi
5050

5151
# Secret Manager secrets.
52-
source ${PROJECT_ROOT}/handwritten/spanner/.kokoro/populate-secrets.sh
52+
source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh

handwritten/spanner/system-test/spanner.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,11 @@ describe('Spanner', () => {
11931193
assert.fail('Expected an error to be thrown, but it was not.');
11941194
} catch (err: any) {
11951195
KOKORO_JOB_NAME?.includes('system-test-regular-session')
1196-
? assert.strictEqual(err.code, grpc.status.FAILED_PRECONDITION)
1196+
? assert.ok(
1197+
err.code === grpc.status.FAILED_PRECONDITION ||
1198+
err.code === grpc.status.OUT_OF_RANGE,
1199+
`Expected FAILED_PRECONDITION (9) or OUT_OF_RANGE (11), got ${err.code}`
1200+
)
11971201
: assert.strictEqual(err.code, grpc.status.INVALID_ARGUMENT);
11981202
}
11991203
};

0 commit comments

Comments
 (0)