Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Apr 11, 2023
1 parent 7a7409b commit 29ab437
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions server/executor/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,18 @@ func getNewCtx(ctx context.Context) context.Context {
}

func (r persistentRunner) Run(ctx context.Context, test model.Test, metadata model.RunMetadata, environment model.Environment) model.Run {
ctx, cancelCtx := context.WithCancel(
getNewCtx(ctx),
)
ctx = getNewCtx(ctx)
// ctx, cancelCtx := context.WithCancel(
// getNewCtx(ctx),
// )

run := model.NewRun()
run.Metadata = metadata
run.Environment = environment
run, err := r.runs.CreateRun(ctx, test, run)
r.handleDBError(run, err)

r.listenForStopRequests(ctx, cancelCtx, run)
// r.listenForStopRequests(ctx, cancelCtx, run)

ds := []expression.DataStore{expression.EnvironmentDataStore{
Values: environment.Values,
Expand Down

0 comments on commit 29ab437

Please sign in to comment.