Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ func run(m *testing.M) int {
defer cancel()

server := exec.CommandContext(ctx, serverBin)
// TODO: os.Interrupt is not supported on Windows. When Windows e2e
// tests are added, use a platform-specific shutdown mechanism.
server.Cancel = func() error {
return server.Process.Signal(os.Interrupt)
}
server.Dir = root
server.Env = append(os.Environ(),
"MODEL_RUNNER_PORT="+strconv.Itoa(port),
Expand Down
Loading