@cryptotaxi247 / kubo / commits / 5cdd4b3d8

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@7a7cf9694be27b62820f05e2ac11bb4a57bab982 This commit was moved from ipfs/boxo@f5117736743ee8753e359aa7e7dbcaf602d75224

Steven Allen committed Mar 6, 2019 at 16:41 UTC 5cdd4b3d81e43fb3a8d794315ce3b34d59afbbce
1 file changed -3
core/coreiface/tests/unixfs.go
-3
@@ -786,9 +786,6 @@ func (tp *provider) TestLs(t *testing.T) {
786 t.Errorf("expected symlink target to be /foo/bar, got %s", entry.Target)
787 }
788
789 - if int(entry.Size) != len(entry.Target) {
790 - t.Errorf("expected size = %d, got %d", len(entry.Target), entry.Size)
791 - }
789 if l, ok := <-entries; ok {
790 t.Errorf("didn't expect a second link")
791 if l.Err != nil {