Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
guonaihong committed Aug 20, 2023
1 parent 381a32f commit b6623fe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions common_options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1557,8 +1557,14 @@ func Test_CommonOption(t *testing.T) {
}
defer con.Close()

con.WriteMessageDelay(Text, []byte("hello"))
con.WriteMessageDelay(Text, []byte("hello"))
err = con.WriteMessageDelay(Text, []byte("hello"))
if err != nil {
t.Error(err)
}
err = con.WriteMessageDelay(Text, []byte("hello"))
if err != nil {
t.Error(err)
}
con.StartReadLoop()
select {
case d := <-data:
Expand All @@ -1571,6 +1577,7 @@ func Test_CommonOption(t *testing.T) {
t.Error("not run server:method fail")
}
})

t.Run("13-15.client: WriteMessageDelay-Compress-Close", func(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
c, err := Upgrade(w, r,
Expand Down

0 comments on commit b6623fe

Please sign in to comment.