Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Jun 8, 2021
1 parent 831813e commit 3778915
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/modules/k6/ws/ws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ func TestSession(t *testing.T) {
assertSessionMetricsEmitted(t, stats.GetBufferedSamples(samples), "", sr("WSBIN_URL/ws-echo"), 101, "")

t.Run("client_cookie", func(t *testing.T) {
t.Parallel()
_, err := rt.RunString(sr(`
var params = {
cookies: { "Session": "123" },
Expand Down
4 changes: 3 additions & 1 deletion lib/testutils/httpmultibin/httpmultibin.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ type jsonBody struct {
Compression string `json:"compression"`
}

func getWebsocketHandler(echo bool, closePrematurely bool, echoCookies bool) http.Handler {
// TODO: Refactor this
//nolint:cyclop
func getWebsocketHandler(echo, closePrematurely, echoCookies bool) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
conn, err := (&websocket.Upgrader{}).Upgrade(w, req, w.Header())
if err != nil {
Expand Down

0 comments on commit 3778915

Please sign in to comment.