Skip to content

Commit 44321fe

Browse files
committed
unchecked err
1 parent 488fd24 commit 44321fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

workflows/testnet/testnet.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,11 @@ func startWorkflow(ctx workflow.Context, req messages.TestnetWorkflowRequest, ru
345345
// wait for the loadtest to complete before allowing teardown
346346
if loadTestFuture != nil && !temporal.IsCanceledError(ctx.Err()) {
347347
workflow.GetLogger(ctx).Info("testnet duration expired but loadtest is still running, waiting for completion")
348-
loadTestFuture.Get(ctx, nil) // Wait for loadtest to complete
348+
err = loadTestFuture.Get(ctx, nil) // Wait for loadtest to complete
349+
if err != nil {
350+
workflow.GetLogger(ctx).Error("failed to wait for load test future", zap.Error(err))
351+
return err
352+
}
349353
workflow.GetLogger(ctx).Info("loadtest completed, proceeding with teardown")
350354
}
351355

0 commit comments

Comments
 (0)