-
Notifications
You must be signed in to change notification settings - Fork 109
chore: retry flaky tests for exceed administrative requests per minute quota error #1149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: retry flaky tests for exceed administrative requests per minute quota error #1149
Conversation
0cb6139
to
5cf9cfc
Compare
system-test/spanner.ts
Outdated
@@ -44,6 +44,24 @@ const spanner = new Spanner({ | |||
projectId: process.env.GCLOUD_PROJECT, | |||
apiEndpoint: process.env.API_ENDPOINT, | |||
}); | |||
const RETRYOPTIONS: CallOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty trivial, but could this be renamed to GAX_OPTIONS
? I'm thinking it might be more clear where it's used to understand the type of object we're providing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, done!
Codecov Report
@@ Coverage Diff @@
## master #1149 +/- ##
=======================================
Coverage 98.34% 98.34%
=======================================
Files 21 21
Lines 20925 20925
Branches 1153 1153
=======================================
Hits 20579 20579
Misses 343 343
Partials 3 3 Continue to review full report at Codecov.
|
@@ -44,6 +44,24 @@ const spanner = new Spanner({ | |||
projectId: process.env.GCLOUD_PROJECT, | |||
apiEndpoint: process.env.API_ENDPOINT, | |||
}); | |||
const GAX_OPTIONS: CallOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Is it possible to add the same logic to the samples tests? The quota issue can happen in both types of tests.
Related to #1089, #1090, #1091 issues
Fixes #958