Skip to content

Commit 371e11d

Browse files
authored
test(e2e): bump bash TIMEOUT for e2e_p2p/add_rollup to match jest 20m (#23177)
1 parent cf63324 commit 371e11d

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

yarn-project/end-to-end/bootstrap.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,26 @@ function test_cmds {
4444
local name=${test#*e2e_}
4545
name=e2e_${name%.test.ts}
4646

47+
# Per-test bash TIMEOUT overrides — keep in sync with the test file's jest.setTimeout.
48+
local test_prefix="$prefix"
49+
case "$name" in
50+
e2e_p2p/add_rollup)
51+
test_prefix="$prefix:TIMEOUT=20m"
52+
;;
53+
esac
54+
4755
# Check if this is a .parallel.test.ts file
4856
if [[ "$test" == *.parallel.test.ts ]]; then
4957
# Extract individual test names and create a command for each
5058
while IFS= read -r test_name; do
5159
# Create a safe name for the individual test (replace spaces with underscores)
5260
local safe_test_name=$(echo "$test_name" | sed 's/ /_/g')
5361
local full_name="${name}_${safe_test_name}"
54-
echo "$prefix:NAME=$full_name $(set_dump_avm $full_name) $run_test_script simple $test \"$test_name\""
62+
echo "$test_prefix:NAME=$full_name $(set_dump_avm $full_name) $run_test_script simple $test \"$test_name\""
5563
done < <(extract_test_names "$test")
5664
else
5765
# Regular test file - run the whole file
58-
echo "$prefix:NAME=$name $(set_dump_avm $name) $run_test_script simple $test"
66+
echo "$test_prefix:NAME=$name $(set_dump_avm $name) $run_test_script simple $test"
5967
fi
6068
done
6169

0 commit comments

Comments
 (0)