Skip to content

Commit f5071e6

Browse files
committed
remove rubbish
1 parent ef921cd commit f5071e6

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

integration-tests/worker/src/init.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import createLightningServer, { toBase64 } from '@openfn/lightning-mock';
55
import createEngine from '@openfn/engine-multi';
66
import createWorkerServer from '@openfn/ws-worker';
77
import { createMockLogger } from '@openfn/logger';
8-
import createLogger from '@openfn/logger';
9-
10-
process.env.WORKER_TIMEOUT_RETRY_DELAY = '1';
11-
process.env.WORKER_TIMEOUT_RETRY_COUNT = '1';
8+
// import createLogger from '@openfn/logger';
129

1310
export const randomPort = () => Math.round(2000 + Math.random() * 1000);
1411

@@ -43,8 +40,8 @@ export const initWorker = async (
4340
});
4441

4542
const worker = createWorkerServer(engine, {
46-
// logger: createMockLogger(),
47-
logger: createLogger('worker', { level: 'debug' }),
43+
logger: createMockLogger(),
44+
// logger: createLogger('worker', { level: 'debug' }),
4845
port: workerPort,
4946
lightning: `ws://localhost:${lightningPort}/worker`,
5047
secret: crypto.randomUUID(),

packages/ws-worker/test/reasons.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ test('exception: failed to load credential', async (t) => {
247247
});
248248

249249
test('exception: credential timeout', async (t) => {
250-
process.env.WORKER_TIMEOUT_RETRY_DELAY = '1';
251-
process.env.WORKER_TIMEOUT_RETRY_COUNT = '5';
252-
253250
const plan = createPlan({
254251
id: 'aa',
255252
expression: 'export default [(s) => s]',
@@ -267,9 +264,6 @@ test('exception: credential timeout', async (t) => {
267264
});
268265

269266
test('kill: timeout', async (t) => {
270-
process.env.WORKER_TIMEOUT_RETRY_DELAY = '1';
271-
process.env.WORKER_TIMEOUT_RETRY_COUNT = '5';
272-
273267
const plan = createPlan({
274268
id: 'x',
275269
expression: 'export default [(s) => { while(true) { } }]',

0 commit comments

Comments
 (0)