Adjusts location of archive test fixtures.

This commit is contained in:
James Phillips 2016-11-03 21:42:50 -07:00
parent 2d4fd24eaf
commit 7ffa189077
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 8 additions and 8 deletions

View File

@ -68,14 +68,14 @@ func TestArchive_BadData(t *testing.T) {
Name string
Error string
}{
{"../../test/snapshot/empty.tar", "failed checking integrity of snapshot"},
{"../../test/snapshot/extra.tar", "unexpected file \"nope\""},
{"../../test/snapshot/missing-meta.tar", "hash check failed for \"meta.json\""},
{"../../test/snapshot/missing-state.tar", "hash check failed for \"state.bin\""},
{"../../test/snapshot/missing-sha.tar", "file missing"},
{"../../test/snapshot/corrupt-meta.tar", "hash check failed for \"meta.json\""},
{"../../test/snapshot/corrupt-state.tar", "hash check failed for \"state.bin\""},
{"../../test/snapshot/corrupt-sha.tar", "list missing hash for \"nope\""},
{"../test/snapshot/empty.tar", "failed checking integrity of snapshot"},
{"../test/snapshot/extra.tar", "unexpected file \"nope\""},
{"../test/snapshot/missing-meta.tar", "hash check failed for \"meta.json\""},
{"../test/snapshot/missing-state.tar", "hash check failed for \"state.bin\""},
{"../test/snapshot/missing-sha.tar", "file missing"},
{"../test/snapshot/corrupt-meta.tar", "hash check failed for \"meta.json\""},
{"../test/snapshot/corrupt-state.tar", "hash check failed for \"state.bin\""},
{"../test/snapshot/corrupt-sha.tar", "list missing hash for \"nope\""},
}
for i, c := range cases {
f, err := os.Open(c.Name)