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()