Skip to content

Commit

Permalink
fix(tests): Use proper API and check for required token (#10223)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz authored Aug 22, 2024
1 parent 60cbb62 commit cd3d0bf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/tests_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ while [ ! -z "$1" ]; do
-W )
shift
wokwi_timeout=$1
if [[ -z $WOKWI_CLI_TOKEN ]]; then
echo "Wokwi CLI token is not set"
exit 1
fi
platform="wokwi"
;;
-o )
Expand Down
2 changes: 1 addition & 1 deletion tests/validation/democfg/test_democfg.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def test_cfg(dut):
dut.expect("Hello cfg!")
dut.expect_exact("Hello cfg!")
2 changes: 1 addition & 1 deletion tests/validation/hello_world/test_hello_world.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def test_hello_world(dut):
dut.expect("Hello Arduino!")
dut.expect_exact("Hello Arduino!")
6 changes: 3 additions & 3 deletions tests/validation/nvs/test_nvs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def test_nvs(dut):
dut.expect("Current counter value: 0")
dut.expect("Current counter value: 1")
dut.expect("Current counter value: 2")
dut.expect_exact("Current counter value: 0")
dut.expect_exact("Current counter value: 1")
dut.expect_exact("Current counter value: 2")

0 comments on commit cd3d0bf

Please sign in to comment.