From d11150df176016acb5a690c0214889c0e5bb696d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 17 Jan 2026 16:57:34 +0800 Subject: tests: Remove the silly tolerance bar that we used to do --- repo_current_test.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/repo_current_test.go b/repo_current_test.go index b87de060..cc66358f 100644 --- a/repo_current_test.go +++ b/repo_current_test.go @@ -28,7 +28,6 @@ func TestCurrentRepoDepthFirstEnumeration(t *testing.T) { queue = append(queue, headHash) objectsRead := 0 - errors := 0 for len(queue) > 0 { hash := queue[0] @@ -41,12 +40,7 @@ func TestCurrentRepoDepthFirstEnumeration(t *testing.T) { 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++ @@ -73,10 +67,4 @@ func TestCurrentRepoDepthFirstEnumeration(t *testing.T) { 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) - } } -- cgit v1.3.1-10-gc9f91