Skip to content

Commit ad23582

Browse files
committed
fix tests
1 parent 5acf304 commit ad23582

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/v2/providers/pubsub.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ export function onMessagePublished<T = any>(
324324
eventTrigger: {
325325
eventType: "google.cloud.pubsub.topic.v1.messagePublished",
326326
resource: `projects/${process.env.GCLOUD_PROJECT}/topics/${topic}`,
327-
retry: opts.retry || false,
328327
},
329328
};
330329
},
@@ -345,7 +344,7 @@ export function onMessagePublished<T = any>(
345344
eventTrigger: {
346345
eventType: "google.cloud.pubsub.topic.v1.messagePublished",
347346
eventFilters: { topic },
348-
retry: false,
347+
retry: opts.retry || false,
349348
},
350349
};
351350
copyIfPresent(endpoint.eventTrigger, opts, "retry", "retry");

0 commit comments

Comments
 (0)