mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-03 23:05:50 +00:00
tsweb: fix tests.
Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
parent
af3a9dfad6
commit
b446de103a
@ -241,7 +241,7 @@ func TestStdHandler(t *testing.T) {
|
|||||||
clock.Reset()
|
clock.Reset()
|
||||||
|
|
||||||
rec := noopHijacker{httptest.NewRecorder(), false}
|
rec := noopHijacker{httptest.NewRecorder(), false}
|
||||||
h := stdHandler(test.h, logf, clock.Now)
|
h := stdHandler(test.h, logf, clock.Now, true)
|
||||||
h.ServeHTTP(&rec, test.r)
|
h.ServeHTTP(&rec, test.r)
|
||||||
res := rec.Result()
|
res := rec.Result()
|
||||||
if res.StatusCode != test.wantCode {
|
if res.StatusCode != test.wantCode {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user