fix(core): update

This commit is contained in:
Philipp Kunz 2019-11-28 14:42:28 +00:00
parent 0e81b8bd94
commit 0bf3b2ea8b
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ let testTaskRunner: taskbuffer.TaskRunner;
tap.test('should create a valid taskrunner', async () => {
testTaskRunner = new taskbuffer.TaskRunner();
testTaskRunner.start();
await testTaskRunner.start();
});
tap.test('should execute task when its scheduled', async (tools) => {

View File

@ -33,7 +33,7 @@ export class TaskRunner {
/**
* starts the task queue
*/
public start() {
public async start() {
this.status = 'running';
}
@ -57,7 +57,7 @@ export class TaskRunner {
/**
* stops the task queue
*/
public stop() {
public async stop() {
this.status = 'stopped';
}
}