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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-09-02 11:02:36 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-11-11 00:09:07 +0300
commit21d4982318b198624dbcef5fb31f22b3b77d2b62 (patch)
tree9f6506071723d17a37a299d34fc507096223ae62 /internal/vfs/local/vfs_test.go
parentaa897ce9849d35cd7ff1121351f1033e91d0c062 (diff)
refactor: remove vfs.ErrNotExist and switch to go native fs error
Diffstat (limited to 'internal/vfs/local/vfs_test.go')
-rw-r--r--internal/vfs/local/vfs_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/vfs/local/vfs_test.go b/internal/vfs/local/vfs_test.go
index 3f84bb39..e9b3fe71 100644
--- a/internal/vfs/local/vfs_test.go
+++ b/internal/vfs/local/vfs_test.go
@@ -2,14 +2,14 @@ package local
import (
"context"
+ "errors"
+ "io/fs"
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
-
- "gitlab.com/gitlab-org/gitlab-pages/internal/vfs"
)
var localVFS = &VFS{}
@@ -99,7 +99,7 @@ func TestVFSRoot(t *testing.T) {
rootVFS, err := localVFS.Root(context.Background(), filepath.Join(tmpDir, test.path), "")
if test.expectedIsNotExist {
- require.Equal(t, test.expectedIsNotExist, vfs.IsNotExist(err))
+ require.Equal(t, test.expectedIsNotExist, errors.Is(err, fs.ErrNotExist))
return
}