From 8c3aefb35142fb4b4bd9f34ae78a8b9aaeff0c09 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Tue, 28 Nov 2023 10:25:36 +0100 Subject: [PATCH] redfishwrapper: minor fix for test --- internal/redfishwrapper/main_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/redfishwrapper/main_test.go b/internal/redfishwrapper/main_test.go index b322015c..b1be7d67 100644 --- a/internal/redfishwrapper/main_test.go +++ b/internal/redfishwrapper/main_test.go @@ -36,6 +36,7 @@ var endpointFunc = func(t *testing.T, file string) http.HandlerFunc { // expect either GET or Delete methods if r.Method != http.MethodGet && r.Method != http.MethodDelete { w.WriteHeader(http.StatusNotFound) + return } _, _ = w.Write(mustReadFile(t, file))