From d15b5d5a7b55ac7936b2cb90742d80c3fc2d7e64 Mon Sep 17 00:00:00 2001 From: Vincent Herrin Date: Mon, 21 Dec 2015 15:17:58 -0600 Subject: [PATCH] Added a delay as a preventative from a race condition. Basically, we want to make sure the dialog app is created before using it. #113 --- WatsonDeveloperCloud/Dialog/Tests/DialogTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WatsonDeveloperCloud/Dialog/Tests/DialogTests.swift b/WatsonDeveloperCloud/Dialog/Tests/DialogTests.swift index c0f814d65..4bed016c5 100644 --- a/WatsonDeveloperCloud/Dialog/Tests/DialogTests.swift +++ b/WatsonDeveloperCloud/Dialog/Tests/DialogTests.swift @@ -76,6 +76,8 @@ class DialogTests: XCTestCase { // create the Dialog application createDialogApp() + sleep(3) + // verify the content of the initial response node verifyInitialNode(initialResponse)