Skip to content

Commit

Permalink
test: add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jin-gou committed May 27, 2024
1 parent 515fb17 commit 277d4a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/app/server/hertz_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func TestWithSenseClientDisconnection(t *testing.T) {
_, err = con.Write([]byte("GET /ping HTTP/1.1\r\nHost: aa\r\n\r\n"))
assert.Nil(t, err)
time.Sleep(time.Second)
assert.DeepEqual(t, atomic.LoadInt32(&closeFlag), int32(0))
assert.Nil(t, con.Close())
time.Sleep(time.Second)
assert.DeepEqual(t, atomic.LoadInt32(&closeFlag), int32(1))
Expand Down

0 comments on commit 277d4a3

Please sign in to comment.