test: enforce async extension API contract (#1452)

This commit is contained in:
Levi authored and GitHub committed 2026-08-27 12:51:37 +08:00
1 parent cfdf87c3b8
commit 59f3aa7028
13 files changed
+121 -77

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
gopeed.events.onStart(async function (ctx) {
gopeed.logger.info("url", ctx.task.meta.req.url);
ctx.task.setUrl("https://github.com");
ctx.task.meta.req.putLabel('modified', 'true');
await ctx.task.setUrl("https://github.com");
await ctx.task.meta.req.putLabel('modified', 'true');
});