RELEASE.2026-03-14T12-00-00Z with go 1.26.0

Switch to community-maintained console fork (georgmangold/console v1.9.1)
and update dependencies accordingly. Fix go vet format directive in
grid_test.go and adapt test status code for Go 1.26 HTTP semantics.
This commit is contained in:
Feng Ruohang
2026-03-14 17:39:57 +08:00
parent 68521b37f2
commit 00f3cf74fc
11 changed files with 408 additions and 332 deletions
+2 -2
View File
@@ -130,7 +130,7 @@ func TestGetURLScheme(t *testing.T) {
func TestTrackingResponseWriter(t *testing.T) {
rw := httptest.NewRecorder()
trw := &trackingResponseWriter{ResponseWriter: rw}
trw.WriteHeader(123)
trw.WriteHeader(299)
if !trw.headerWritten {
t.Fatal("headerWritten was not set by WriteHeader call")
}
@@ -142,7 +142,7 @@ func TestTrackingResponseWriter(t *testing.T) {
// Check that WriteHeader and Write were called on the underlying response writer
resp := rw.Result()
if resp.StatusCode != 123 {
if resp.StatusCode != 299 {
t.Fatalf("unexpected status: %v", resp.StatusCode)
}
body, err := io.ReadAll(resp.Body)