From b310469598a828ba5cfc0d4dcea83aa55cc56e5c Mon Sep 17 00:00:00 2001 From: Stephan Zeissler Date: Fri, 8 Mar 2024 15:26:14 +0100 Subject: [PATCH] fix: Accept any 2xx for test case updates as valid --- api/testcase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/testcase.go b/api/testcase.go index c902693..f500238 100644 --- a/api/testcase.go +++ b/api/testcase.go @@ -114,7 +114,7 @@ func (c *Client) TestCaseUpdate(testCaseUID string, fileName string, data io.Rea defer close(response.Body) - if response.StatusCode != 200 { + if response.StatusCode >= 300 { return false, string(body), nil }