Skip to content

Commit

Permalink
Fix compatibility with k6 after integration tests refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Dec 16, 2022
1 parent 88e75f7 commit 52e4589
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,17 @@ type goModTemplateContext struct {
const mainModuleTemplate = `package main
import (
"context"
k6cmd "{{.K6Module}}/cmd"
k6state "{{.K6Module}}/cmd/state"
// plug in k6 modules here
// TODO: Create /modules/standard dir structure?
// _ "{{.K6Module}}/modules/standard"
)
func main() {
k6cmd.Execute()
k6cmd.Execute(k6state.NewGlobalState(context.Background()))
}
`

0 comments on commit 52e4589

Please sign in to comment.