@@ -390,9 +390,9 @@ func TestSchedulerEnqueueWhileProcessing(t *testing.T) {
390
390
p .testEventCh <- func (id roachpb.RangeID , ss * raftSchedulerShard , ev raftScheduleState ) {
391
391
// First call into this method.
392
392
//
393
- // The event calling into us must have `ev.begin ` set; it was set when
393
+ // The event calling into us must have `ev.queued ` set; it was set when
394
394
// enqueuing.
395
- assert .NotZero (t , ev .begin )
395
+ assert .NotZero (t , ev .queued )
396
396
397
397
// Even though our event is currently being processed, there is a queued
398
398
// and otherwise blank event in the scheduler state (which is how we have
@@ -402,7 +402,7 @@ func TestSchedulerEnqueueWhileProcessing(t *testing.T) {
402
402
statePre := ss .state [id ]
403
403
ss .Unlock ()
404
404
405
- assert .Zero (t , statePre .begin )
405
+ assert .Zero (t , statePre .queued )
406
406
assert .Equal (t , stateQueued , statePre .flags )
407
407
408
408
// Simulate a concurrent actor that enqueues the same range again.
@@ -411,21 +411,21 @@ func TestSchedulerEnqueueWhileProcessing(t *testing.T) {
411
411
s .enqueue1 (stateTestIntercept , 1 )
412
412
413
413
// Seeing that there is an existing "queued" event, the enqueue call below
414
- // should not populate `begin `. Instead, this will be the job of our
414
+ // should not populate `queued `. Instead, this will be the job of our
415
415
// caller when it *actually* pushes into the queue again after fully
416
416
// having handled `ev`.
417
417
ss .Lock ()
418
418
statePost := ss .state [id ]
419
419
ss .Unlock ()
420
420
421
- assert .Zero (t , statePost .begin )
421
+ assert .Zero (t , statePost .queued )
422
422
assert .Equal (t , stateQueued | stateTestIntercept , statePost .flags )
423
423
close (done )
424
424
}
425
425
p .testEventCh <- func (id roachpb.RangeID , shard * raftSchedulerShard , ev raftScheduleState ) {
426
426
// Second call into this method, i.e. the overlappingly-enqeued event is
427
- // being processed. Check that `begin ` is now set.
428
- assert .NotZero (t , ev .begin )
427
+ // being processed. Check that `queued ` is now set.
428
+ assert .NotZero (t , ev .queued )
429
429
}
430
430
s .enqueue1 (stateTestIntercept , 1 ) // will become 'ev' in the intercept
431
431
select {
0 commit comments