-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(storage): fix ReadStallTimeout test #10992
Conversation
Fix this test to work in the CI. Also remove a spurious log statement.
storage/client_test.go
Outdated
} | ||
defer r.Close() | ||
// Plant stall at start for 1s. | ||
instructions := map[string][]string{"storage.objects.get": {"stall-for-1s-after-0K"}} |
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.
We should set the delay to longer than 5 seconds. If a retry occurs, the process will work as expected; otherwise, it will fail with a deadline exceeded error.
Also, I have fixed a bug in the storage-test-bench. We need to take this change before this PR. P
Storage-test-bench fix: googleapis/storage-testbench#690
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.
Good catch. I released a new emulator version and updated the test to have a longer stall.
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.
LGTM. Added a comment.
Fix this test to use the emulator test harness so it will run in the presubmit emulator run and not with the integration tests. Also reduce timings for quicker execution.