Skip to content

Commit

Permalink
test: simple smoke-test of container, using bats
Browse files Browse the repository at this point in the history
  • Loading branch information
tzdybal committed Jan 24, 2023
1 parent ad760e1 commit af1493a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,27 @@ get_second_block_id() {
}

@test "celestia-appd is producing blocks" {
ok="false"
for i in {1..30}; do
run get_second_block_id
if [ $status == 0 ]; then
ok="true"
break
fi
sleep 1
done
$($ok)
}

@test "celestia-node is processing blocks" {
ok="false"
for i in {1..30}; do
run curl -s GET http://127.0.0.1:26659/head 2>&1
run curl -s http://127.0.0.1:26659/head 2>&1
if [ $status == 0 ]; then
ok="true"
break
fi
sleep 1
done
$($ok)
}

0 comments on commit af1493a

Please sign in to comment.