We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf0c532 commit 1b9ca29Copy full SHA for 1b9ca29
modules/storage/local_test.go
@@ -6,6 +6,8 @@ package storage
6
import (
7
"bytes"
8
"context"
9
+ "os"
10
+ "path/filepath"
11
"testing"
12
13
"github.com/stretchr/testify/assert"
@@ -54,7 +56,8 @@ func TestBuildLocalPath(t *testing.T) {
54
56
}
55
57
58
func TestLocalStorageIterator(t *testing.T) {
- l, err := NewLocalStorage(context.Background(), LocalStorageConfig{Path: "testdata/"})
59
+ dir := filepath.Join(os.TempDir(), "TestLocalStorageIteratorTestDir")
60
+ l, err := NewLocalStorage(context.Background(), LocalStorageConfig{Path: dir})
61
assert.NoError(t, err)
62
63
testFiles := [][]string{
0 commit comments