Lots more changes
This commit is contained in:
@@ -12,10 +12,12 @@ import (
|
||||
"scratchbox/internal/storage"
|
||||
)
|
||||
|
||||
var testStorageKey = []byte("0123456789abcdef0123456789abcdef")
|
||||
|
||||
func TestNewWorker(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
store, err := storage.NewFilesystemStore(filepath.Join(t.TempDir(), "data"))
|
||||
store, err := storage.NewFilesystemStore(filepath.Join(t.TempDir(), "data"), testStorageKey)
|
||||
if err != nil {
|
||||
t.Fatalf("NewFilesystemStore() error = %v", err)
|
||||
}
|
||||
@@ -29,7 +31,7 @@ func TestNewWorker(t *testing.T) {
|
||||
func TestWorkerStartRemovesExpiredAndLogs(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
store, err := storage.NewFilesystemStore(filepath.Join(t.TempDir(), "data"))
|
||||
store, err := storage.NewFilesystemStore(filepath.Join(t.TempDir(), "data"), testStorageKey)
|
||||
if err != nil {
|
||||
t.Fatalf("NewFilesystemStore() error = %v", err)
|
||||
}
|
||||
@@ -53,7 +55,7 @@ func TestWorkerStartRemovesExpiredAndLogs(t *testing.T) {
|
||||
func TestWorkerStartWithNoExpiredEntries(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
store, err := storage.NewFilesystemStore(filepath.Join(t.TempDir(), "data"))
|
||||
store, err := storage.NewFilesystemStore(filepath.Join(t.TempDir(), "data"), testStorageKey)
|
||||
if err != nil {
|
||||
t.Fatalf("NewFilesystemStore() error = %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user