From 5f52a9a47b41de363791da4f109a131ad56ae92f Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Thu, 28 Jul 2016 12:40:02 -0700 Subject: [PATCH] fix(specs): Properly spy on streaming connection - Prevent error logs and actually trying to start delta streaming connections --- .../worker-sync/spec/nylas-sync-worker-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_packages/worker-sync/spec/nylas-sync-worker-spec.coffee b/internal_packages/worker-sync/spec/nylas-sync-worker-spec.coffee index c95a9f1d2..bc98c5367 100644 --- a/internal_packages/worker-sync/spec/nylas-sync-worker-spec.coffee +++ b/internal_packages/worker-sync/spec/nylas-sync-worker-spec.coffee @@ -43,11 +43,11 @@ describe "NylasSyncWorker", -> return throw new Error("Not stubbed! #{key}") + spyOn(DeltaStreamingConnection.prototype, 'start') @account = new Account(clientId: TEST_ACCOUNT_CLIENT_ID, serverId: TEST_ACCOUNT_ID, organizationUnit: 'label') @worker = new NylasSyncWorker(@api, @account) @worker._metadata = {"a": [{"id":"b"}]} @connection = @worker.connection() - spyOn(@connection, 'start') advanceClock() it "should reset `busy` to false when reading state from disk", ->