chore: upgrade Go to 1.27 (#30601)

This commit is contained in:
andig 2026-08-20 13:36:53 +02:00 • committed by GitHub
parent 748d36d130
commit e63bae0c8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 135 additions and 154 deletions

View file

@ -16,7 +16,7 @@ func TestSockePlugin(t *testing.T) {
ctx, cancel := context.WithTimeout(t.Context(), time.Second*10)
defer cancel()
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
srv := httptest.NewTestServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
c, err := websocket.Accept(w, r, nil)
require.NoError(t, err)
defer c.Close(websocket.StatusNormalClosure, "")
@ -36,8 +36,7 @@ func TestSockePlugin(t *testing.T) {
}
}
}))
defer srv.Close()
srv.Start()
addr := "ws://" + srv.Listener.Addr().String()
p, err := NewSocketPluginFromConfig(map[string]any{