ref: d11150df176016acb5a690c0214889c0e5bb696d
parent: a2dbcf95c2a9393efa95477431b97c8ab9ff036e
author: Runxi Yu <runxiyu@umich.edu>
date: Sat Jan 17 11:57:34 EST 2026
tests: Remove the silly tolerance bar that we used to do
--- a/repo_current_test.go
+++ b/repo_current_test.go
@@ -28,7 +28,6 @@
queue = append(queue, headHash)
objectsRead := 0
- errors := 0
for len(queue) > 0 {hash := queue[0]
@@ -41,12 +40,7 @@
obj, err := repo.ReadObject(hash)
if err != nil {- t.Logf("failed to read object %s: %v", hash, err)- errors++
- if errors > 0 {- t.Fatalf("too many errors (%d) reading objects", errors)- }
- continue
+ t.Fatalf("failed to read object %s: %v", hash, err)}
objectsRead++
@@ -72,11 +66,5 @@
if objectsRead == 0 { t.Fatal("no objects were read from the repository")- }
-
- t.Logf("Read %d objects from current repository HEAD (%d errors)", objectsRead, errors)-
- if errors > 0 {- t.Fatalf("encountered %d errors during enumeration", errors)}
}
--
⑨