fix: unittest

This commit is contained in:
debugtalk
2022-05-25 11:17:19 +08:00
parent 63dc9696df
commit d8383e36d8
15 changed files with 25 additions and 23 deletions
+3 -3
View File
@@ -91,11 +91,11 @@ func (path *TestCasePath) ToTestCase() (*TestCase, error) {
// override testcase config env with variables loaded from .env file
// priority: .env file > testcase config env
if testCase.Config.Env == nil {
testCase.Config.Env = make(map[string]string)
if testCase.Config.Environs == nil {
testCase.Config.Environs = make(map[string]string)
}
for key, value := range envVars {
testCase.Config.Env[key] = value
testCase.Config.Environs[key] = value
}
}