mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
fix: unittest
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user