remove target size requirement

It's complicated. We need to carefully think through how sizes work.


This commit was moved from ipfs/interface-go-ipfs-core@7a7cf9694b

This commit was moved from ipfs/boxo@f511773674
This commit is contained in:
Steven Allen 2019-03-06 16:41:05 -08:00
parent 30b344a5af
commit 5cdd4b3d81

View File

@ -786,9 +786,6 @@ func (tp *provider) TestLs(t *testing.T) {
t.Errorf("expected symlink target to be /foo/bar, got %s", entry.Target)
}
if int(entry.Size) != len(entry.Target) {
t.Errorf("expected size = %d, got %d", len(entry.Target), entry.Size)
}
if l, ok := <-entries; ok {
t.Errorf("didn't expect a second link")
if l.Err != nil {