fix: data race

This commit is contained in:
xucong053
2022-07-25 21:23:06 +08:00
committed by 徐聪
parent a24107c394
commit 548e846a3b
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ func (r *HRPRunner) newCaseRunner(testcase *TestCase) (*testCaseRunner, error) {
timeout := time.Duration(runner.testCase.Config.Timeout*1000) * time.Millisecond
runner.hrpRunner.SetTimeout(timeout)
}
if plugin.Path() != "" {
if plugin != nil {
pluginContent, err := builtin.ReadFile(plugin.Path())
if err != nil {
return nil, err