mirror of https://github.com/gorilla/websocket.git
Removed missing tests
This commit is contained in:
parent
7de010c67d
commit
f747c3f35c
|
@ -1,26 +0,0 @@
|
||||||
package websocket
|
|
||||||
|
|
||||||
import (
|
|
||||||
"bytes"
|
|
||||||
"compress/flate"
|
|
||||||
"testing"
|
|
||||||
)
|
|
||||||
|
|
||||||
func Test_NewAdaptorWriter(t *testing.T) {
|
|
||||||
backendBuff := new(bytes.Buffer)
|
|
||||||
aw := NewAdaptorWriter(backendBuff)
|
|
||||||
|
|
||||||
fw, err := flate.NewWriter(aw, -1)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
var n int
|
|
||||||
n, err = fw.Write([]byte("test"))
|
|
||||||
t.Log(n, err)
|
|
||||||
|
|
||||||
if err = fw.Flush(); err != nil {
|
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue