1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Reinhard Tartler <siretart@tauware.de>
Date: Tue, 11 Nov 2025 06:25:47 -0500
Subject: TestMkdirAllHandle_RacingCreate: avoid 512, 1024 threads
Turns out to be too stressful and easily breaks on slower archs,
like i386
---
pathrs-lite/mkdir_linux_test.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pathrs-lite/mkdir_linux_test.go b/pathrs-lite/mkdir_linux_test.go
index d865dfa..499a69e 100644
--- a/pathrs-lite/mkdir_linux_test.go
+++ b/pathrs-lite/mkdir_linux_test.go
@@ -567,7 +567,7 @@ func TestMkdirAllHandle_RacingCreate(t *testing.T) { //nolint:revive // undersco
}
testutils.WithWithoutOpenat2(true, tRunWrapper(t), func(ti testutils.TestingT) {
t := ti.(*testing.T) //nolint:forcetypeassert // guaranteed to be true and in test code
- threadRanges := []int{2, 4, 8, 16, 32, 64, 128, 512, 1024}
+ threadRanges := []int{2, 4, 8, 16, 32, 64, 128}
for _, numThreads := range threadRanges {
numThreads := numThreads
t.Run(fmt.Sprintf("threads=%d", numThreads), func(t *testing.T) {
|