From 2dbcc5ce7b45a58223eedad9c419eb09a580d340 Mon Sep 17 00:00:00 2001 From: attiasas Date: Sun, 5 Nov 2023 16:19:44 +0200 Subject: [PATCH] fix static --- xray_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xray_test.go b/xray_test.go index 1573843b6..663f67f54 100644 --- a/xray_test.go +++ b/xray_test.go @@ -915,8 +915,9 @@ func curationServer(t *testing.T, expectedRequest map[string]bool, requestToFail } if r.Method == http.MethodGet { if r.RequestURI == "/api/system/version" { - w.Write([]byte(`{"version": "7.0.0"}`)) + _, err := w.Write([]byte(`{"version": "7.0.0"}`)) w.WriteHeader(http.StatusOK) + require.NoError(t, err) return }