20457: Update test to match new unlock-at-quota behavior. 20457-careful-near-quota
authorTom Clegg <tom@curii.com>
Fri, 11 Aug 2023 17:31:29 +0000 (13:31 -0400)
committerTom Clegg <tom@curii.com>
Fri, 11 Aug 2023 17:31:29 +0000 (13:31 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/dispatchcloud/scheduler/run_queue_test.go

index 4359ae03babb91404d9917728c6b27f6dcf9efc5..a8df944b4c9faa30488efe5a7e6e47986e98ec58 100644 (file)
@@ -249,12 +249,12 @@ func (*SchedulerSuite) TestShutdownAtQuota(c *check.C) {
                case 1, 2:
                        // Can't create a type3 node for ctr3, so we
                        // shutdown an unallocated node (type2), and
-                       // unlock both containers.
+                       // unlock the 2nd-in-line container, but not
+                       // the 1st-in-line container.
                        c.Check(pool.starts, check.HasLen, 0)
                        c.Check(pool.shutdowns, check.Equals, 1)
                        c.Check(pool.creates, check.HasLen, 0)
                        c.Check(queue.StateChanges(), check.DeepEquals, []test.QueueStateChange{
-                               {UUID: test.ContainerUUID(3), From: "Locked", To: "Queued"},
                                {UUID: test.ContainerUUID(2), From: "Locked", To: "Queued"},
                        })
                case 3: