|
|
@ -15,6 +15,7 @@ package web
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"fmt"
|
|
|
|
"io/ioutil"
|
|
|
|
"io/ioutil"
|
|
|
|
"net/http"
|
|
|
|
"net/http"
|
|
|
|
"net/http/httptest"
|
|
|
|
"net/http/httptest"
|
|
|
@ -115,7 +116,7 @@ func TestReadyAndHealthy(t *testing.T) {
|
|
|
|
go func() {
|
|
|
|
go func() {
|
|
|
|
err := webHandler.Run(context.Background())
|
|
|
|
err := webHandler.Run(context.Background())
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("Can't start web handler:%s", err)
|
|
|
|
panic(fmt.Sprintf("Can't start web handler:%s", err))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}()
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
|
@ -211,7 +212,7 @@ func TestRoutePrefix(t *testing.T) {
|
|
|
|
go func() {
|
|
|
|
go func() {
|
|
|
|
err := webHandler.Run(context.Background())
|
|
|
|
err := webHandler.Run(context.Background())
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("Can't start web handler:%s", err)
|
|
|
|
panic(fmt.Sprintf("Can't start web handler:%s", err))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}()
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
|
|