Skip to content

fix(storage): Skip only specific transport tests.#11016

Merged
tritone merged 3 commits into
googleapis:mainfrom
cjc25:carlon-transport-test-fix
Oct 23, 2024
Merged

fix(storage): Skip only specific transport tests.#11016
tritone merged 3 commits into
googleapis:mainfrom
cjc25:carlon-transport-test-fix

Conversation

@cjc25

@cjc25 cjc25 commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

Some client tests only work with certain transports, so we try to skip them. However by calling t.Skip() before the per-transport t.Run(), we skipped every remaining sub-test once we hit that condition.

This changes the code to skip only the relevant transport, by skipping the testing.T for the sub-test.

Some client tests only work with certain transports, so we try to skip
them. However by calling `t.Skip()` before the per-transport `t.Run()`,
we skipped every remaining sub-test once we hit that condition.

This changes the code to skip only the relevant transport, by skipping
the testing.T for the sub-test.
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Oct 22, 2024
@cjc25 cjc25 marked this pull request as ready for review October 22, 2024 18:31
@cjc25 cjc25 requested review from a team October 22, 2024 18:31
@BrennaEpp BrennaEpp added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 22, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 22, 2024
@tritone tritone added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 22, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 22, 2024
@tritone tritone added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 23, 2024
@tritone tritone merged commit d40fbff into googleapis:main Oct 23, 2024
@cjc25 cjc25 deleted the carlon-transport-test-fix branch October 23, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants