Adjusts location of archive test fixtures.
This commit is contained in:
parent
be4056789f
commit
07ffdeef25
|
@ -68,14 +68,14 @@ func TestArchive_BadData(t *testing.T) {
|
||||||
Name string
|
Name string
|
||||||
Error string
|
Error string
|
||||||
}{
|
}{
|
||||||
{"../../test/snapshot/empty.tar", "failed checking integrity of snapshot"},
|
{"../test/snapshot/empty.tar", "failed checking integrity of snapshot"},
|
||||||
{"../../test/snapshot/extra.tar", "unexpected file \"nope\""},
|
{"../test/snapshot/extra.tar", "unexpected file \"nope\""},
|
||||||
{"../../test/snapshot/missing-meta.tar", "hash check failed for \"meta.json\""},
|
{"../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-state.tar", "hash check failed for \"state.bin\""},
|
||||||
{"../../test/snapshot/missing-sha.tar", "file missing"},
|
{"../test/snapshot/missing-sha.tar", "file missing"},
|
||||||
{"../../test/snapshot/corrupt-meta.tar", "hash check failed for \"meta.json\""},
|
{"../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-state.tar", "hash check failed for \"state.bin\""},
|
||||||
{"../../test/snapshot/corrupt-sha.tar", "list missing hash for \"nope\""},
|
{"../test/snapshot/corrupt-sha.tar", "list missing hash for \"nope\""},
|
||||||
}
|
}
|
||||||
for i, c := range cases {
|
for i, c := range cases {
|
||||||
f, err := os.Open(c.Name)
|
f, err := os.Open(c.Name)
|
||||||
|
|
Loading…
Reference in New Issue