change test to await the task worker create

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2021-10-27 13:08:13 +01:00
parent 3236071136
commit ab6b7191c5
@@ -82,7 +82,7 @@ describe('TaskWorker', () => {
it('should call the legacy workflow runner when the apiVersion is not beta3', async () => {
const broker = new StorageTaskBroker(storage, logger);
const taskWorker = TaskWorker.create({
const taskWorker = await TaskWorker.create({
logger,
workingDirectory,
integrations,
@@ -113,7 +113,7 @@ describe('TaskWorker', () => {
it('should call the default workflow runner when the apiVersion is beta3', async () => {
const broker = new StorageTaskBroker(storage, logger);
const taskWorker = TaskWorker.create({
const taskWorker = await TaskWorker.create({
logger,
workingDirectory,
integrations,
@@ -142,7 +142,7 @@ describe('TaskWorker', () => {
});
const broker = new StorageTaskBroker(storage, logger);
const taskWorker = TaskWorker.create({
const taskWorker = await TaskWorker.create({
logger,
workingDirectory,
integrations,