Integration testing: unset irrelevant env variables (#2902)

This commit is contained in:
Boxuan Li 2024-07-12 07:12:37 -07:00 committed by GitHub
parent 96b5cb78fd
commit ebbc0e6803
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,12 @@ set -eo pipefail
## CONSTANTS AND ENVIRONMENTAL VARIABLES ##
##############################################################
# unset environmental variables that might disturb testing
unset OPENAI_API_KEY
unset SANDBOX_ENV_OPENAI_API_KEY
unset OPENAI_BASE_URL
unset OPENAI_MODEL
TMP_FILE="${TMP_FILE:-tmp.log}"
if [ -z $WORKSPACE_MOUNT_PATH ]; then