mirror of https://github.com/status-im/consul.git
Adjusts location of archive test fixtures.
This commit is contained in:
parent
2d4fd24eaf
commit
7ffa189077
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue