diff --git a/.github/workflows/Repeated_tests_endurancce.yml b/.github/workflows/Repeated_tests_endurancce.yml index cacf036..f5e1149 100644 --- a/.github/workflows/Repeated_tests_endurancce.yml +++ b/.github/workflows/Repeated_tests_endurancce.yml @@ -41,16 +41,16 @@ jobs: - name: Repeated test runs run: | - set +e - for i in {1..20}; do - echo "Iteration $i: measuring memory BEFORE the tests..." - go run tools/memory_record.go --iteration $i --phase start - echo "Running tests (iteration $i)..." - go test -v -tags=stress ./... - echo "Iteration $i: measuring memory AFTER the tests..." - go run tools/memory_record.go --iteration $i --phase end - done - set -e + set +e + for i in {1..20}; do + echo "Iteration $i: measuring memory BEFORE the tests..." + go run tools/memory_record.go --iteration $i --phase start + echo "Running tests (iteration $i)..." + go test -v -tags=stress ./... + echo "Iteration $i: measuring memory AFTER the tests..." + go run tools/memory_record.go --iteration $i --phase end + done + set -e - name: Upload memory_metrics.csv