Skip to content

Commit

Permalink
fix: Flaky pubsub test (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
wietsevenema authored Apr 20, 2022
1 parent 8fdfc6f commit bd0bbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions container-analysis/snippets/test/containerAnalysis.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe('pubsub', () => {
await pubsub.createTopic(topicName);
} catch (err) {
console.log(`topic creation failed: ${topicName} ${err.message}`);
if (!err.message.includes('ALREADY_EXISTS')) {
if (!err.details.includes('Resource already exists')) {
throw err;
}
}
Expand All @@ -331,7 +331,7 @@ describe('pubsub', () => {
console.log(
`subscription creation failed: ${subscriptionId} ${err.message}`
);
if (!err.message.includes('ALREADY_EXISTS')) {
if (!err.details.includes('Resource already exists')) {
throw err;
}
}
Expand Down

0 comments on commit bd0bbb5

Please sign in to comment.