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-30 14:35:06 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-11-30 14:37:23 +0300
commitd13acbb585182980c0fcdba72df26001fafbce38 (patch)
treecd8650cb0e69fe633beb91ff6dbb2be114df38f5 /internal/serving/disk/zip/serving_test.go
parent14e61effff77b6dde9effc665a13c82bec509067 (diff)
Remove default config
Add todo to reconfigure other vfs
Diffstat (limited to 'internal/serving/disk/zip/serving_test.go')
-rw-r--r--internal/serving/disk/zip/serving_test.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/internal/serving/disk/zip/serving_test.go b/internal/serving/disk/zip/serving_test.go
index 40b8e02a..e64a761a 100644
--- a/internal/serving/disk/zip/serving_test.go
+++ b/internal/serving/disk/zip/serving_test.go
@@ -55,14 +55,17 @@ 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,
+ cfg := &config.Config{
+ Zip: &config.ZipServing{
+ ExpirationInterval: 10 * time.Second,
+ CleanupInterval: 5 * time.Second,
+ RefreshInterval: 5 * time.Second,
+ OpenTimeout: 5 * time.Second,
+ },
}
+
s := Instance()
- err := s.Reconfigure(config.Default)
+ err := s.Reconfigure(cfg)
require.NoError(t, err)
for name, test := range tests {