diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-11-22 03:31:47 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-11-30 02:15:10 +0300 |
commit | 64374fa4294cf1b143cc67e1e85dfbf726ed0572 (patch) | |
tree | be0af0eded1f68d20e08f7bab11b729ca0bd7654 /internal/serving | |
parent | 973ff1719c8559a12610ec3d3ffe070d2bb592a9 (diff) |
Increase time for flaky test
Cleanup
Diffstat (limited to 'internal/serving')
-rw-r--r-- | internal/serving/disk/zip/serving_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/serving/disk/zip/serving_test.go b/internal/serving/disk/zip/serving_test.go index bca2ae51..5bf16d7b 100644 --- a/internal/serving/disk/zip/serving_test.go +++ b/internal/serving/disk/zip/serving_test.go @@ -5,9 +5,11 @@ import ( "net/http" "net/http/httptest" "testing" + "time" "github.com/stretchr/testify/require" + "gitlab.com/gitlab-org/gitlab-pages/internal/config" "gitlab.com/gitlab-org/gitlab-pages/internal/serving" "gitlab.com/gitlab-org/gitlab-pages/internal/testhelpers" ) @@ -53,6 +55,12 @@ func TestZip_ServeFileHTTP(t *testing.T) { }, } + config.Default.Zip = &config.ZipServing{ + ExpirationInterval: 10 * time.Second, + CleanupInterval: 5 * time.Second, + RefreshInterval: 5 * time.Second, + OpenTimeout: 5 * time.Second, + } s := Instance() for name, test := range tests { |