Skip to content

Commit 8c3aefb

Browse files
committed
redfishwrapper: minor fix for test
1 parent cdc6f14 commit 8c3aefb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/redfishwrapper/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var endpointFunc = func(t *testing.T, file string) http.HandlerFunc {
3636
// expect either GET or Delete methods
3737
if r.Method != http.MethodGet && r.Method != http.MethodDelete {
3838
w.WriteHeader(http.StatusNotFound)
39+
return
3940
}
4041

4142
_, _ = w.Write(mustReadFile(t, file))

0 commit comments

Comments
 (0)