Skip to content

Commit 276f6c3

Browse files
avoid writing nil results
1 parent 2b7ed66 commit 276f6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/cmd/loadtest/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func deploySample(ctx context.Context, id int, deployer *deployer.CliDeployer, s
249249
t.Logger.Printf("deployer %v failed to run test %v at %v: %v", id, sampleName, samplePath, err)
250250
}
251251

252-
if resultDir != "" {
252+
if result != nil && resultDir != "" {
253253
WriteResults(result, resultDir)
254254
}
255255

0 commit comments

Comments
 (0)