Skip to content

Commit baf4e35

Browse files
committed
Optimize tests and remove unneeded
1 parent 5866140 commit baf4e35

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

application/lib/metacomTest/start.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

application/lib/task1/start.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
async () => {
22
if (!config.examples.scheduler) return;
33
if (application.worker.id !== 'W1') return;
4-
setTimeout(async () => {
5-
const res = await application.scheduler.add({
6-
name: 'name',
7-
every: 'Sep 10th 10s',
8-
args: { i: 2 },
9-
run: 'lib.task1.f1',
10-
});
11-
console.log('Add task', res);
12-
}, 1000);
4+
const res = await application.scheduler.add({
5+
name: 'name',
6+
every: 'Oct 19th 10s',
7+
args: { i: 2 },
8+
run: 'lib.task1.f1',
9+
});
10+
console.log('Add task', res);
1311
};

0 commit comments

Comments
 (0)