Skip to content

Commit 2ed0aa1

Browse files
committed
[ci] 🔇 suppress testFail* deprecation warning in Foundry tests
1 parent 2dca088 commit 2ed0aa1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ jobs:
6363
# Ensures that tests run without unnecessary noise in CI logs.
6464
- name: Run Forge tests
6565
run: |
66-
yarn test:local 2>&1 | grep -v "Warning: \`testFail*"
66+
(yarn test:local 2>&1 | tee forge_test.log | grep -v "testFail* has been removed") || true
6767
id: test

test/run_all_tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ FOUNDRY_PROFILE=$PROFILE FOUNDRY_FUZZ_RUNS=0 forge test \
3131
--ffi \
3232
-j 1 \
3333
--gas-report \
34-
--cache-path .forge-cache 2>&1 | tee test_results.log
34+
--cache-path .forge-cache 2>&1 | tee test_results.log | grep -v 'testFail* has been removed'
3535

3636
# Extract failing tests
3737
grep '\[FAIL:' test_results.log | awk '{print $2}' | sed 's/:.*//' | sort -u > failed_tests.log
@@ -59,7 +59,7 @@ while [[ $attempt -le $MAX_RETRIES && $num_fails -gt 0 ]]; do
5959
--ffi \
6060
-j 1 \
6161
--gas-report \
62-
--cache-path .forge-cache
62+
--cache-path .forge-cache 2>&1 | tee test_results.log | grep -v 'testFail* has been removed'
6363
done < failed_tests.log
6464

6565
# Check if any tests still fail

0 commit comments

Comments
 (0)