Merge pull request #15201 from dbadoy/main

pkg/schedule: correct comparison for FIFO schedule test
dependabot/go_modules/go.uber.org/atomic-1.10.0
Benjamin Wang 2023-03-08 14:46:58 +08:00 committed by GitHub
commit 24f5d4a6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ func TestFIFOSchedule(t *testing.T) {
}
s.WaitFinish(100)
if s.Scheduled() != 100 {
t.Errorf("scheduled = %d, want %d", s.Scheduled(), 100)
if s.Finished() != 100 {
t.Errorf("finished = %d, want %d", s.Finished(), 100)
}
}