mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-11-10 10:29:12 +03:00
server: fix flaky test test_startup_db_calls_logs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3813 GitOrigin-RevId: 9a1f946cf8de617220fdd7c04bae7e416ce1cedd
This commit is contained in:
parent
a1886b3729
commit
dd2f190352
@ -773,13 +773,22 @@ startup-db-calls)
|
||||
set +x
|
||||
|
||||
wait_for_port 8080
|
||||
kill_hge_servers
|
||||
# end verbose logging
|
||||
|
||||
# running HGE server again for pytest, the test will use the log generated from the previous run
|
||||
# see https://github.com/hasura/graphql-engine-mono/pull/3813 for more information
|
||||
run_hge_with_args serve
|
||||
wait_for_port 8080
|
||||
pytest -n 1 --hge-urls "$HGE_URL" --pg-urls "$HASURA_GRAPHQL_DATABASE_URL" --hge-key="$HASURA_GRAPHQL_ADMIN_SECRET" --test-startup-db-calls test_startup_db_calls.py
|
||||
|
||||
unset HASURA_GRAPHQL_ENABLED_LOG_TYPES
|
||||
kill_hge_servers
|
||||
|
||||
# end verbose logging tests
|
||||
unset HASURA_GRAPHQL_ENABLED_LOG_TYPES
|
||||
unset HASURA_GRAPHQL_LOG_LEVEL
|
||||
unset HASURA_GRAPHQL_ADMIN_SECRET
|
||||
unset LOGGING_TEST_LOGFILE_PATH
|
||||
|
||||
;;
|
||||
|
||||
read-only-db)
|
||||
|
Loading…
Reference in New Issue
Block a user