use WithoutCancel interface w/ Pop(nil)
This commit is contained in:
@@ -358,7 +358,7 @@ func TestDFIFO_sanity_check(t *testing.T) {
|
||||
|
||||
// pop last
|
||||
before := time.Now()
|
||||
x := df.Pop(nil)
|
||||
x := df.Pop(WithoutCancel())
|
||||
assert.Equal(a.(*testjob).instance, 2)
|
||||
|
||||
now := time.Now()
|
||||
@@ -395,7 +395,7 @@ func TestDFIFO_Offer(t *testing.T) {
|
||||
}
|
||||
|
||||
before := time.Now()
|
||||
x := dq.Pop(nil)
|
||||
x := dq.Pop(WithoutCancel())
|
||||
|
||||
now := time.Now()
|
||||
waitPeriod := now.Sub(before)
|
||||
|
Reference in New Issue
Block a user