diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2020-08-31 16:19:36 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2020-09-02 13:45:30 +0300 |
commit | dbcb88960b39ea79518937e674a6b531f47edf33 (patch) | |
tree | 4d3f6f0b5a4b915d54c4fddf42dfcddf33c0457c /internal/domain/domain_test.go | |
parent | 0d9cd84842e15a092637186271535bd340b41842 (diff) |
Rename `disk.Instance()` to `local.Instance()`move-disk-to-local
Make `local` to be a special style of disk
serving, using the `local.VFS`
Diffstat (limited to 'internal/domain/domain_test.go')
-rw-r--r-- | internal/domain/domain_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/domain/domain_test.go b/internal/domain/domain_test.go index 5fa5d792..2df1d992 100644 --- a/internal/domain/domain_test.go +++ b/internal/domain/domain_test.go @@ -11,7 +11,7 @@ import ( "gitlab.com/gitlab-org/gitlab-pages/internal/fixture" "gitlab.com/gitlab-org/gitlab-pages/internal/serving" - "gitlab.com/gitlab-org/gitlab-pages/internal/serving/disk" + "gitlab.com/gitlab-org/gitlab-pages/internal/serving/disk/local" "gitlab.com/gitlab-org/gitlab-pages/internal/testhelpers" ) @@ -23,7 +23,7 @@ type stubbedResolver struct { func (resolver *stubbedResolver) Resolve(*http.Request) (*serving.Request, error) { return &serving.Request{ - Serving: disk.Instance(), + Serving: local.Instance(), LookupPath: resolver.project, SubPath: resolver.subpath, }, resolver.err |