(t *testing.T, job *proto.AcquiredJob)
| 1374 | } |
| 1375 | |
| 1376 | func newAcquireOne(t *testing.T, job *proto.AcquiredJob) *acquireOne { |
| 1377 | return &acquireOne{ |
| 1378 | t: t, |
| 1379 | job: job, |
| 1380 | complete: make(chan struct{}), |
| 1381 | } |
| 1382 | } |
| 1383 | |
| 1384 | func (a *acquireOne) acquireWithCancel(stream proto.DRPCProvisionerDaemon_AcquireJobWithCancelStream) error { |
| 1385 | a.mu.Lock() |