Skip to content

Commit

Permalink
add code
Browse files Browse the repository at this point in the history
  • Loading branch information
lysShub committed May 25, 2024
1 parent 6459103 commit 58f3a63
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions handle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,6 @@ func Test_Send_Priority(t *testing.T) {
d, err := Open(filter, Network, p, 0)
require.NoError(t, err)
time.AfterFunc(time.Second*3, func() {
println("call")
d.Close()
})

Expand All @@ -821,7 +820,7 @@ func Test_Send_Priority(t *testing.T) {
time.Sleep(time.Second)
}

require.Contains(t, []int16{loPriority, midPriority, loPriority + midPriority}, int16(rs.Load()))
require.Contains(t, []int16{loPriority, midPriority}, int16(rs.Load()))
})

t.Run("inbound", func(t *testing.T) {
Expand Down Expand Up @@ -865,6 +864,6 @@ func Test_Send_Priority(t *testing.T) {
time.Sleep(time.Second)
}

require.Contains(t, []int16{loPriority, loPriority + midPriority}, int16(rs.Load()))
require.Contains(t, []int16{loPriority, midPriority}, int16(rs.Load()))
})
}

0 comments on commit 58f3a63

Please sign in to comment.