1
0
Fork 0

tar/storage: fix the test

This commit is contained in:
Vincent Batts 2015-02-24 15:49:21 -05:00
parent 8ff77b5aa0
commit eafa1b9426
1 changed files with 6 additions and 2 deletions

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))
}
}