fix(core): update
This commit is contained in:
parent
0e81b8bd94
commit
0bf3b2ea8b
@ -5,7 +5,7 @@ let testTaskRunner: taskbuffer.TaskRunner;
|
|||||||
|
|
||||||
tap.test('should create a valid taskrunner', async () => {
|
tap.test('should create a valid taskrunner', async () => {
|
||||||
testTaskRunner = new taskbuffer.TaskRunner();
|
testTaskRunner = new taskbuffer.TaskRunner();
|
||||||
testTaskRunner.start();
|
await testTaskRunner.start();
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should execute task when its scheduled', async (tools) => {
|
tap.test('should execute task when its scheduled', async (tools) => {
|
||||||
|
@ -33,7 +33,7 @@ export class TaskRunner {
|
|||||||
/**
|
/**
|
||||||
* starts the task queue
|
* starts the task queue
|
||||||
*/
|
*/
|
||||||
public start() {
|
public async start() {
|
||||||
this.status = 'running';
|
this.status = 'running';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ export class TaskRunner {
|
|||||||
/**
|
/**
|
||||||
* stops the task queue
|
* stops the task queue
|
||||||
*/
|
*/
|
||||||
public stop() {
|
public async stop() {
|
||||||
this.status = 'stopped';
|
this.status = 'stopped';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user