Skip to content

Commit 5c3b3a9

Browse files
lkdvosclaude
andcommitted
Clear TensorKit's caches before each test
Workers run many test files in turn, and the caches filled by one would otherwise stay alive for the rest of the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 622f4eb commit 5c3b3a9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎test/runtests.jl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ end
7373
const init_code = quote
7474
using ..TestSetup
7575
const fast_tests = $fast
76+
# free the caches filled by earlier tests on this worker, which would otherwise accumulate
77+
TestSetup.TensorKit.empty_globalcaches!()
7678
end
7779

7880
ParallelTestRunner.runtests(TensorKit, args; testsuite, init_worker_code, init_code, max_worker_rss)

0 commit comments

Comments
 (0)