Skip to content

Commit

Permalink
fix: unit tests may fail (cloudwego#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duslia authored Jan 12, 2022
1 parent 5605e34 commit 3003ba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func TestConnectionRead(t *testing.T) {
for i := 0; i < cycleTime; i++ {
buf, err := rconn.Reader().Next(size)
MustNil(t, err)
rconn.Reader().Release()
Equal(t, len(buf), size)
rconn.Reader().Release()
}
}()
for i := 0; i < cycleTime; i++ {
Expand Down Expand Up @@ -302,8 +302,8 @@ func TestBookSizeLargerThanMaxSize(t *testing.T) {
for i := 0; i < length; i++ {
buf, err := rconn.Reader().Next(2 << i)
MustNil(t, err)
rconn.Reader().Release()
Equal(t, string(buf), string(dataCollection[i]))
rconn.Reader().Release()
}
}()
for i := 0; i < length; i++ {
Expand Down

0 comments on commit 3003ba0

Please sign in to comment.