Add e2e tests in ci stage

This commit is contained in:
Maximilian Paß
2021-04-28 13:42:33 +02:00
parent 77f84ccf56
commit 0dc4d28c1b
12 changed files with 118 additions and 23 deletions

View File

@@ -11,6 +11,7 @@ import (
"net/http"
"os"
"os/signal"
"syscall"
"time"
)
@@ -53,7 +54,7 @@ func initServer(runnerPool pool.RunnerPool) *http.Server {
func shutdownOnOSSignal(server *http.Server) {
// wait for SIGINT
signals := make(chan os.Signal, 1)
signal.Notify(signals, os.Interrupt)
signal.Notify(signals, syscall.SIGINT, syscall.SIGTERM)
<-signals
log.Info("Received SIGINT, shutting down ...")