aboutsummaryrefslogtreecommitdiff
path: root/repo_current_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-01-17 16:57:34 +0800
committerGravatar Runxi Yu2026-01-17 16:57:34 +0800
commitd11150df176016acb5a690c0214889c0e5bb696d (patch)
tree639aa9543e9a9c9590c367cb31dda2afa0071dd1 /repo_current_test.go
parentloose/pack: Remove commented-out verifyTypedObject (diff)
signatureNo signature
tests: Remove the silly tolerance bar that we used to do
Diffstat (limited to 'repo_current_test.go')
-rw-r--r--repo_current_test.go14
1 files changed, 1 insertions, 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)
- }
}