fatalf is not thread safe so using panic instead (#3680)

This commit is contained in:
Krasi Georgiev 2018-01-13 10:37:38 +00:00 committed by Brian Brazil
parent 0471e64ad1
commit 4be9a40b89
1 changed files with 3 additions and 2 deletions

View File

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