This commit is contained in:
Chris Lu 2021-01-12 12:32:54 -08:00
parent 1c7faf1100
commit def6d8e565

View file

@ -15,7 +15,7 @@ func TestCreateAndFind(t *testing.T) {
dir, _ := ioutil.TempDir("", "seaweedfs_filer_test") dir, _ := ioutil.TempDir("", "seaweedfs_filer_test")
defer os.RemoveAll(dir) defer os.RemoveAll(dir)
store := &LevelDB3Store{} store := &LevelDB3Store{}
store.initialize(dir, 2) store.initialize(dir)
testFiler.SetStore(store) testFiler.SetStore(store)
fullpath := util.FullPath("/home/chris/this/is/one/file1.jpg") fullpath := util.FullPath("/home/chris/this/is/one/file1.jpg")
@ -69,7 +69,7 @@ func TestEmptyRoot(t *testing.T) {
dir, _ := ioutil.TempDir("", "seaweedfs_filer_test2") dir, _ := ioutil.TempDir("", "seaweedfs_filer_test2")
defer os.RemoveAll(dir) defer os.RemoveAll(dir)
store := &LevelDB3Store{} store := &LevelDB3Store{}
store.initialize(dir, 2) store.initialize(dir)
testFiler.SetStore(store) testFiler.SetStore(store)
ctx := context.Background() ctx := context.Background()