fix: data racing by parsing config

This commit is contained in:
debugtalk
2022-04-12 21:47:04 +08:00
parent fcaa94f6f4
commit 4cf3798c9a
5 changed files with 47 additions and 51 deletions

View File

@@ -81,6 +81,7 @@ func TestRunRequestRun(t *testing.T) {
}
runner := NewRunner(t).SetRequestsLogOn()
sessionRunner := runner.NewSessionRunner(testcase)
sessionRunner.parseConfig(nil)
if _, err := stepGET.Run(sessionRunner); err != nil {
t.Fatalf("stepGET.Run() error: %v", err)
}