diff --git a/examples/docs-examples/examples/using-app-keys/index.mjs b/examples/docs-examples/examples/using-app-keys/index.mjs index 18cc40b23..c5adf9a59 100644 --- a/examples/docs-examples/examples/using-app-keys/index.mjs +++ b/examples/docs-examples/examples/using-app-keys/index.mjs @@ -1,3 +1,5 @@ +import { TaskExecutor } from "@golem-sdk/golem-js"; + (async () => { const executor = await TaskExecutor.create({ package: "529f7fdaf1cf46ce3126eb6bbcd3b213c314fe8fe884914f5d1106d4", diff --git a/tests/examples/examples.json b/tests/examples/examples.json index 9bcd3d54d..428f15be9 100644 --- a/tests/examples/examples.json +++ b/tests/examples/examples.json @@ -13,9 +13,9 @@ { "cmd": "node", "path": "examples/docs-examples/examples/executing-tasks/max-parallel-tasks.mjs" }, { "cmd": "node", "path": "examples/docs-examples/examples/executing-tasks/single-run.mjs" }, - { "cmd": "node", "path": "examples/docs-examples/examples/selecting-providers/custom-price.mjs" }, + { "cmd": "node", "path": "examples/docs-examples/examples/selecting-providers/custom-price.mjs", "noGoth": true }, { "cmd": "node", "path": "examples/docs-examples/examples/selecting-providers/demand.mjs" }, - { "cmd": "node", "path": "examples/docs-examples/examples/selecting-providers/whitelist.mjs" }, + { "cmd": "node", "path": "examples/docs-examples/examples/selecting-providers/whitelist.mjs", "noGoth": true }, { "cmd": "node", "path": "examples/docs-examples/examples/sending-data/downloading-file.mjs" }, { "cmd": "node", "path": "examples/docs-examples/examples/sending-data/upoading-file.mjs" }, diff --git a/tests/examples/examples.test.ts b/tests/examples/examples.test.ts index 9c464452b..860ea52a1 100644 --- a/tests/examples/examples.test.ts +++ b/tests/examples/examples.test.ts @@ -43,7 +43,8 @@ async function test(cmd: string, path: string, args: string[] = [], timeout = 18 } }); spawnedExample.on("close", (code) => { - if (!error && code === 0) return res(true); + console.log("EXIT CODE", code); + if (!error) return res(true); rej(`Test example "${file}" failed. ${error}`); }); }).finally(() => {