From a59621953d159a6aeee4f1f483c0d742180445f3 Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 2 Jun 2015 21:23:30 +0800 Subject: [PATCH] use turbo library in coverage test --- spec/unit/commonrequire.lua | 3 +++ spec/unit/httpclient_spec.lua | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/spec/unit/commonrequire.lua b/spec/unit/commonrequire.lua index 2e0f49531..1f7e6260d 100644 --- a/spec/unit/commonrequire.lua +++ b/spec/unit/commonrequire.lua @@ -21,3 +21,6 @@ Input.dummy = true -- turn on debug local DEBUG = require("dbg") --DEBUG:turnOn() + +-- use turbo lib in test +DUSE_TURBO_LIB = true diff --git a/spec/unit/httpclient_spec.lua b/spec/unit/httpclient_spec.lua index 4972ac640..9aa725bb8 100644 --- a/spec/unit/httpclient_spec.lua +++ b/spec/unit/httpclient_spec.lua @@ -12,12 +12,6 @@ describe("HTTP client module", function() assert(not res.error, "error occurs") assert(res.body) end - setup(function() - DUSE_TURBO_LIB = true - end) - teardown(function() - DUSE_TURBO_LIB = false - end) local async_client = HTTPClient:new() it("should get response from async GET request", function() UIManager:quit()