mirror of
https://github.com/labstack/echo.git
synced 2025-03-17 21:08:05 +02:00
Merge pull request #339 from o1egl/fix_websocket_test_on_windows
Fix websocket test on windows
This commit is contained in:
commit
1bf719830a
@ -274,7 +274,7 @@ func TestEchoWebSocket(t *testing.T) {
|
||||
url := fmt.Sprintf("ws://%s/ws", addr)
|
||||
ws, err := websocket.Dial(url, "", origin)
|
||||
if assert.NoError(t, err) {
|
||||
ws.Write([]byte("test"))
|
||||
ws.Write([]byte("test\n"))
|
||||
defer ws.Close()
|
||||
buf := new(bytes.Buffer)
|
||||
buf.ReadFrom(ws)
|
||||
|
Loading…
x
Reference in New Issue
Block a user