Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-06-23 02:35:30 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-06-23 02:35:30 +0300
commit17eb828b1e28d8ac4c62017786bd31b3b42da103 (patch)
tree213b32e5671d502127a618f27a9a09d7faf3c415 /test
parent0177ebf4b031d52a897cf785c93d4780138e075e (diff)
Simpler status check
Diffstat (limited to 'test')
-rw-r--r--test/acceptance/artifacts_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/acceptance/artifacts_test.go b/test/acceptance/artifacts_test.go
index d00ef516..2f578a73 100644
--- a/test/acceptance/artifacts_test.go
+++ b/test/acceptance/artifacts_test.go
@@ -149,7 +149,7 @@ func TestArtifactProxyRequest(t *testing.T) {
require.Equal(t, tt.status, resp.StatusCode)
require.Equal(t, tt.contentType, resp.Header.Get("Content-Type"))
- if !((tt.status == http.StatusBadGateway) || (tt.status == http.StatusNotFound) || (tt.status == http.StatusInternalServerError)) {
+ if tt.status == http.StatusOK {
body, err := ioutil.ReadAll(resp.Body)
require.NoError(t, err)
require.Equal(t, tt.content, string(body))