Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d9c9415

Browse files
committed
Fix Write call
1 parent f5c5bdb commit d9c9415

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ai/inference/compute_environment_service_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package inference_test
22

33
import (
44
"encoding/json"
5-
"io"
65
"net/http"
76
"testing"
87

@@ -35,7 +34,7 @@ func TestComputeEnvironmentCRD(t *testing.T) {
3534
w.WriteHeader(http.StatusInternalServerError)
3635
return
3736
}
38-
_, _ = io.WriteString(w, string(resp))
37+
_, _ = w.Write(resp)
3938
case http.MethodDelete:
4039
w.WriteHeader(http.StatusOK)
4140
default:
@@ -61,7 +60,7 @@ func TestComputeEnvironmentCRD(t *testing.T) {
6160
return
6261
}
6362
w.WriteHeader(http.StatusCreated)
64-
_, _ = io.WriteString(w, string(resp))
63+
_, _ = w.Write(resp)
6564
default:
6665
w.WriteHeader(http.StatusNotImplemented)
6766
}

ai/inference/compute_target_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestComputeTargetCRD(t *testing.T) {
3636
w.WriteHeader(http.StatusInternalServerError)
3737
return
3838
}
39-
_, _ = io.WriteString(w, string(resp))
39+
_, _ = w.Write(resp)
4040
case http.MethodDelete:
4141
w.WriteHeader(http.StatusOK)
4242
default:

0 commit comments

Comments
 (0)