From 3e5d6bdb84e4f0207b7af184392f646605a0a339 Mon Sep 17 00:00:00 2001 From: Allen Wight Date: Wed, 25 Oct 2017 14:00:44 -0400 Subject: [PATCH] Adds done in efforts to fix travis timeout errors --- client/app/core/appliance-info.service.spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/app/core/appliance-info.service.spec.js b/client/app/core/appliance-info.service.spec.js index b1f0ae6af..c6ae072a0 100644 --- a/client/app/core/appliance-info.service.spec.js +++ b/client/app/core/appliance-info.service.spec.js @@ -24,13 +24,14 @@ describe('Appliance Info Service', () => { bard.inject('ApplianceInfo') }) - it('should allow you to set appliance info', () => { + it('should allow you to set appliance info', (done) => { const applianceSpy = sinon.spy(ApplianceInfo, 'set') ApplianceInfo.set(applianceInfoData) + done() expect(applianceSpy).to.have.been.calledWith(applianceInfoData) }) - it('Should allow you to retrieve the appliance info', () => { + it('Should allow you to retrieve the appliance info', (done) => { const expectedApplianceInfo = { 'copyright': 'Copyright (c) 2017 ManageIQ. Sponsored by Red Hat Inc.', 'supportWebsiteText': 'ManageIQ.org', @@ -44,6 +45,7 @@ describe('Appliance Info Service', () => { } ApplianceInfo.set(applianceInfoData) const currentApplianceInfo = ApplianceInfo.get() + done() expect(currentApplianceInfo).to.eql(expectedApplianceInfo) })