File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 uses : actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
4242 with :
4343 python-version : " 3.13"
44+ - name : Bootstrap patched pip trust
45+ uses : durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
4446 - name : Install policy dependencies
4547 run : " python -m pip install --only-binary :all: PyYAML==6.0.2"
4648 - name : Require centrally approved immutable action commits
Original file line number Diff line number Diff line change @@ -192,17 +192,19 @@ public function testAReclaimedReservationSurvivesTheOriginalAcknowledgementRetry
192192
193193 public function testChangedQueueAndReservationTimestampAreAlsoFenced (): void
194194 {
195- foreach ([[
196- 'queue ' => 'neighbor ' ,
197- ], [
198- 'reserved_at ' => time () + 1 ,
199- ]] as $ change ) {
195+ foreach (['queue ' , 'reserved_at ' ] as $ field ) {
200196 $ job = $ this ->job ();
197+ $ changed = $ this ->connection ->table ('jobs ' )
198+ ->find ($ job ->getJobId ());
199+ self ::assertNotNull ($ changed );
200+ $ changed ->{$ field } = $ field === 'queue ' ? 'neighbor ' : (int ) $ changed ->reserved_at + 1 ;
201201 $ this ->connection ->table ('jobs ' )
202202 ->where ('id ' , $ job ->getJobId ())
203- ->update ($ change );
203+ ->update ([
204+ $ field => $ changed ->{$ field },
205+ ]);
204206 $ job ->delete ();
205- self ::assertNotNull ( $ this ->connection ->table ('jobs ' )->find ($ job ->getJobId ()));
207+ self ::assertEquals ( $ changed , $ this ->connection ->table ('jobs ' )->find ($ job ->getJobId ()));
206208 }
207209 }
208210
You can’t perform that action at this time.
0 commit comments