Skip to content

Commit

Permalink
fix after CR
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Nov 28, 2023
1 parent 55a61d6 commit a9e8964
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tcp/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,11 @@ func TestConnRequestMonitorCloseConnection(t *testing.T) {
deleteReq.SetMessageID(2)
_, err = cc.Do(deleteReq)
require.Error(t, err)
<-reqMonitorErr
select {
case <-reqMonitorErr:
case <-ctx.Done():
require.Fail(t, "request monitor not called")
}
}

func TestConnRequestMonitorDropRequest(t *testing.T) {
Expand Down
6 changes: 5 additions & 1 deletion udp/client/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,11 @@ func TestConnRequestMonitorCloseConnection(t *testing.T) {
deleteReq.SetMessageID(2)
_, err = cc.Do(deleteReq)
require.Error(t, err)
<-reqMonitorErr
select {
case <-reqMonitorErr:
case <-ctx.Done():
require.Fail(t, "request monitor not called")
}
}

func TestConnRequestMonitorDropRequest(t *testing.T) {
Expand Down

0 comments on commit a9e8964

Please sign in to comment.