Skip to content

Commit

Permalink
Add regression test for issue wahern#178
Browse files Browse the repository at this point in the history
  • Loading branch information
daurnimator committed Feb 18, 2017
1 parent 1bcd9f4 commit d3ec712
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions regress/178-last-resolver.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
exec runlua "$0" "$@"
]]
require"regress".export".*"

local pool = dns.getpool()
local r = pool:get()
pool:put(r)
local q = pool:get()
check(r == q, "resolver not reused")

say"OK"

0 comments on commit d3ec712

Please sign in to comment.