1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-12-22 13:26:30 +00:00

tar/storage: fix the test

This commit is contained in:
Vincent Batts 2015-02-24 15:49:21 -05:00
parent 8ff77b5aa0
commit eafa1b9426

View file

@ -39,8 +39,8 @@ func TestJsonPackerUnpacker(t *testing.T) {
}
}()
t.Errorf("%#v", b.String())
b = bytes.NewBuffer(b.Bytes())
entries := Entries{}
func() {
jup := NewJsonUnpacker(b)
for {
@ -51,8 +51,12 @@ func TestJsonPackerUnpacker(t *testing.T) {
}
t.Error(err)
}
t.Errorf("%#v", entry)
entries = append(entries, *entry)
t.Logf("got %#v", entry)
}
}()
if len(entries) != len(e) {
t.Errorf("expected %d entries, got %d", len(e), len(entries))
}
}