Merge pull request #2505 from aawsome/fix-repo-configfile
Fix repo configfile
This commit is contained in:
commit
7facc8ccc1
3 changed files with 19 additions and 3 deletions
|
@ -273,6 +273,14 @@ func TestLoadJSONUnpacked(t *testing.T) {
|
|||
|
||||
rtest.Equals(t, sn.Hostname, sn2.Hostname)
|
||||
rtest.Equals(t, sn.Username, sn2.Username)
|
||||
|
||||
var cf restic.Config
|
||||
|
||||
// load and check Config
|
||||
err = repo.LoadJSONUnpacked(context.TODO(), restic.ConfigFile, id, &cf)
|
||||
rtest.OK(t, err)
|
||||
|
||||
rtest.Equals(t, cf.ChunkerPolynomial, repository.TestChunkerPol)
|
||||
}
|
||||
|
||||
var repoFixture = filepath.Join("testdata", "test-repo.tar.gz")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue