use WithoutCancel interface w/ Pop(nil)

This commit is contained in:
James DeFelice
2015-12-12 15:33:48 +00:00
parent af95e3fe0e
commit 26593f1a6a
4 changed files with 11 additions and 10 deletions

View File

@@ -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)