Skip to content

Commit

Permalink
Add test storage for StorageMadeEasy's File Fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertchen committed Nov 23, 2020
1 parent 175adb1 commit 41a8f65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/duplicacy_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,15 @@ func loadStorage(localStoragePath string, threads int) (Storage, error) {
}
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else if testStorageName == "fabric" {
storage, err := CreateFileFabricStorage(config["endpoint"], config["token"], config["storage_path"], threads)
if err != nil {
return nil, err
}
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
}

return nil, fmt.Errorf("Invalid storage named: %s", testStorageName)
}

Expand Down

0 comments on commit 41a8f65

Please sign in to comment.