You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(pubsub): Topic race condition; SMT test failure (#5381)
TestCreateSubscriptionWithSMT has been failing in repo-wide builds with a nil topic error.
* update getOrCreateTopic test function to avoid race between checking topic existence and creating the topic. (tests are using t.Parallel(), so it can happen across tests)
* in TestCreateSubscriptionWithSMT:
* use shared getOrCreateTopic rather than local code. (local code had a bug which only occured when topic didn't already exist.)
* use test specific topicID
* use only one Retry block in body of the test so new topic both lives long enough to run the test and is cleaned up by defer.
0 commit comments