mirror of
https://github.com/pgsty/minio.git
synced 2026-07-16 00:41:25 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user