diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 798b9ded..210fa09e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -34,12 +34,6 @@ jobs: # Echo the entire output (optional, for debugging purposes) echo "$output" - # Check if there were any failed tests - if echo "$output" | grep -q "test result: ok"; then - echo "All tests passed!" - exit 0 - else - echo "Some tests failed" - exit 1 - fi + # Filter and echo the specific part of the output you are interested in + echo "$output" | grep -E "Error: test result: FAILED. [0-9]+ passed; [0-9]+ failed; [0-9]+ ignored" diff --git a/src/tests/option_round/rb_tree/rb_tree_tests.cairo b/src/tests/option_round/rb_tree/rb_tree_tests.cairo index c661ab31..c59e4ba2 100644 --- a/src/tests/option_round/rb_tree/rb_tree_tests.cairo +++ b/src/tests/option_round/rb_tree/rb_tree_tests.cairo @@ -42,7 +42,7 @@ fn test_insert_into_empty_tree() { assert(is_tree_valid, 'Tree is not valid'); let node_2 = rb_tree.find(node_2_id); - assert(node_2.price == 0, 'Node 2 price mismatch'); + assert(node_2.price == 2, 'Node 2 price mismatch'); let node_1 = rb_tree.find(node_1_id); assert(node_1.price == 1, 'Node 1 price mismatch');