File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import (
13
13
14
14
"cdr.dev/slog"
15
15
"cdr.dev/slog/sloggers/sloghuman"
16
-
17
16
"github.com/coder/coder/coderd/database"
18
17
"github.com/coder/coder/coderd/database/dbauthz"
19
18
"github.com/coder/coder/codersdk/agentsdk"
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ func TestTailnet(t *testing.T) {
99
99
100
100
t .Run ("ForcesWebSockets" , func (t * testing.T ) {
101
101
t .Parallel ()
102
- ctx := testutil .Context (t , testutil .WaitLong )
102
+ ctx := testutil .Context (t , testutil .WaitMedium )
103
103
104
104
w1IP := tailnet .IP ()
105
105
derpMap := tailnettest .RunDERPOnlyWebSockets (t )
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ func RunDERPOnlyWebSockets(t *testing.T) *tailcfg.DERPMap {
77
77
handler , closeFunc = tailnet .WithWebsocketSupport (d , handler )
78
78
server := httptest .NewUnstartedServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
79
79
if r .URL .Path != "/derp" {
80
- handler .ServeHTTP (w , r )
80
+ w .WriteHeader (http .StatusOK )
81
+ _ , _ = w .Write ([]byte ("hello" ))
81
82
return
82
83
}
83
84
if r .Header .Get ("Upgrade" ) != "websocket" {
You can’t perform that action at this time.
0 commit comments