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
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-11-22 03:31:47 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-11-30 02:15:10 +0300
commit64374fa4294cf1b143cc67e1e85dfbf726ed0572 (patch)
treebe0af0eded1f68d20e08f7bab11b729ca0bd7654 /internal/serving
parent973ff1719c8559a12610ec3d3ffe070d2bb592a9 (diff)
Increase time for flaky test
Cleanup
Diffstat (limited to 'internal/serving')
-rw-r--r--internal/serving/disk/zip/serving_test.go8
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 {