Skip to content

Commit

Permalink
Fix ci lint (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiantang authored May 5, 2024
1 parent df2c137 commit 3f19370
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runner/proxy_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestProxyStream(t *testing.T) {
var wg sync.WaitGroup
for i := 0; i < 10; i++ {
wg.Add(1)
go func(i int) {
go func(_ int) {
defer wg.Done()
_ = stream.AddSubscriber()
}(i)
Expand Down
4 changes: 2 additions & 2 deletions runner/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func TestProxy_proxyHandler(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
srv := httptest.NewServer(http.HandlerFunc(func(_ http.ResponseWriter, r *http.Request) {
tt.assert(r)
}))
defer srv.Close()
Expand All @@ -142,7 +142,7 @@ func TestProxy_proxyHandler(t *testing.T) {
}

func TestProxy_reloadHandler(t *testing.T) {
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
fmt.Fprint(w, "thin air")
}))
srvPort := getServerPort(t, srv)
Expand Down

0 comments on commit 3f19370

Please sign in to comment.