Commit 93d86c6d authored by zauberstuhl's avatar zauberstuhl

testproject wait for proper server start

parent 73d31d69
Pipeline #891 passed with stage
in 1 minute and 49 seconds
...@@ -23,15 +23,19 @@ load test_helper ...@@ -23,15 +23,19 @@ load test_helper
# #
# for this project that could look something like this: # for this project that could look something like this:
# #
# cmd="docker logs $(container_id tp1)" cmd="docker logs $(container_id tp1)"
# text="CREATE TABLE" text="CREATE TABLE"
# code=$(wait_for "$cmd" "$text") code=$(wait_for "$cmd" "$text")
# [ "$code" -eq "0" ] [ "$code" -eq "0" ]
} }
@test "$btf start testproject#2 server" { @test "$btf start testproject#2 server" {
start_app tp2 3000 testproject$(latest_tag testproject) start_app tp2 3000 testproject$(latest_tag testproject)
[ "$?" -eq 0 ] [ "$?" -eq 0 ]
cmd="docker logs $(container_id tp1)"
text="CREATE TABLE"
code=$(wait_for "$cmd" "$text")
[ "$code" -eq "0" ]
} }
@test "$btf test initial count, it should be zero" { @test "$btf test initial count, it should be zero" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment