updated hws.ThrowError to not return an error and log it to console instead
fixed errors_test fixed tests
This commit is contained in:
@@ -26,8 +26,9 @@ func randomPort() uint64 {
|
||||
|
||||
func createTestServer(t *testing.T, w io.Writer) *hws.Server {
|
||||
server, err := hws.NewServer(&hws.Config{
|
||||
Host: "127.0.0.1",
|
||||
Port: randomPort(),
|
||||
Host: "127.0.0.1",
|
||||
Port: randomPort(),
|
||||
ShutdownDelay: 0, // No delay for tests
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user