Diff

spec/net_http_server_spec.lua @ 8687:ee01578c67cb

net.http.server: Prevent loading of net.server in tests (breaks unrelated tests for some reason)
author Kim Alvefur <zash@zash.se>
date Sat, 24 Mar 2018 00:06:55 +0100
parent 8413:9a234e25b35b
line wrap: on
line diff
--- a/spec/net_http_server_spec.lua	Fri Mar 23 18:02:37 2018 +0100
+++ b/spec/net_http_server_spec.lua	Sat Mar 24 00:06:55 2018 +0100
@@ -1,4 +1,5 @@
 describe("net.http.server", function ()
+	package.loaded["net.server"] = {}
 	local server = require "net.http.server";
 	describe("events", function ()
 		it("should work with util.helpers", function ()