Mercurial > prosody-hg
comparison 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 |
| parents | 9a234e25b35b |
| children |
comparison
equal
deleted
inserted
replaced
| 8686:a0f728c3aa69 | 8687:ee01578c67cb |
|---|---|
| 1 describe("net.http.server", function () | 1 describe("net.http.server", function () |
| 2 package.loaded["net.server"] = {} | |
| 2 local server = require "net.http.server"; | 3 local server = require "net.http.server"; |
| 3 describe("events", function () | 4 describe("events", function () |
| 4 it("should work with util.helpers", function () | 5 it("should work with util.helpers", function () |
| 5 -- See #1044 | 6 -- See #1044 |
| 6 server.add_handler("GET host/foo/*", function () end, 0); | 7 server.add_handler("GET host/foo/*", function () end, 0); |
