diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-11-30 14:35:06 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-11-30 14:37:23 +0300 |
commit | d13acbb585182980c0fcdba72df26001fafbce38 (patch) | |
tree | cd8650cb0e69fe633beb91ff6dbb2be114df38f5 /internal/serving/disk/zip/serving_test.go | |
parent | 14e61effff77b6dde9effc665a13c82bec509067 (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.go | 15 |
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 { |