This commit is contained in:
+2
-3
@@ -12,7 +12,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/syncthing/syncthing/lib/events"
|
||||
"github.com/syncthing/syncthing/lib/fs"
|
||||
"github.com/syncthing/syncthing/lib/protocol"
|
||||
)
|
||||
|
||||
@@ -109,7 +108,7 @@ func TestRecalcMeta(t *testing.T) {
|
||||
defer ldb.Close()
|
||||
|
||||
// Add some files
|
||||
s1 := newFileSet(t, "test", fs.NewFilesystem(fs.FilesystemTypeFake, "fake"), ldb)
|
||||
s1 := newFileSet(t, "test", ldb)
|
||||
files := []protocol.FileInfo{
|
||||
{Name: "a", Size: 1000},
|
||||
{Name: "b", Size: 2000},
|
||||
@@ -161,7 +160,7 @@ func TestRecalcMeta(t *testing.T) {
|
||||
}
|
||||
|
||||
// Create a new fileset, which will realize the inconsistency and recalculate
|
||||
s2 := newFileSet(t, "test", fs.NewFilesystem(fs.FilesystemTypeFake, "fake"), ldb)
|
||||
s2 := newFileSet(t, "test", ldb)
|
||||
|
||||
// Verify local/global size
|
||||
snap = snapshot(t, s2)
|
||||
|
||||
Reference in New Issue
Block a user