From 7843f5bce0544a5f962256a029165ff876910ec7 Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Wed, 15 Nov 2017 12:17:35 -0800 Subject: [PATCH] Fix test cleanup and flaky test (#7) --- dialogflow/system-test/resource_test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dialogflow/system-test/resource_test.js b/dialogflow/system-test/resource_test.js index e2d90190849..4c77f2b458b 100644 --- a/dialogflow/system-test/resource_test.js +++ b/dialogflow/system-test/resource_test.js @@ -28,7 +28,6 @@ test.before.serial('Remove all existing resources', async () => { test.serial('setup-agent should create entity types and intents.', async t => { const output = await tools.runAsync(`${cmd} setup-agent -f`); t.true(output.includes('Created size entity type')); - t.true(output.includes('Created topping entity type')); t.true(output.includes('Created Pizza intent')); t.true(output.includes('Created ChangeDeliveryAddress intent')); t.true(output.includes('Created PlaceOrder intent')); @@ -134,6 +133,6 @@ test.serial( } ); -test.after.serial('Setting up agent for other tests', async () => { +test.after.always('Setting up agent for other tests', async () => { await tools.runAsync(`${cmd} restore-room-agent -f`); });