@@ -53,7 +53,7 @@ func TestNoReconciliationActionsIfNoPresets(t *testing.T) {
53
53
require .Equal (t , templateVersion , gotTemplateVersion )
54
54
55
55
// when we trigger the reconciliation loop for all templates
56
- controller . Reconcile ( ctx , nil )
56
+ require . NoError ( t , controller . ReconcileAll ( ctx ) )
57
57
58
58
// then no reconciliation actions are taken
59
59
// because without presets, there are no prebuilds
@@ -109,7 +109,7 @@ func TestNoReconciliationActionsIfNoPrebuilds(t *testing.T) {
109
109
require .NotEmpty (t , presetParameters )
110
110
111
111
// when we trigger the reconciliation loop for all templates
112
- controller . Reconcile ( ctx , nil )
112
+ require . NoError ( t , controller . ReconcileAll ( ctx ) )
113
113
114
114
// then no reconciliation actions are taken
115
115
// because without prebuilds, there is nothing to reconcile
@@ -316,7 +316,7 @@ func TestActiveTemplateVersionPrebuilds(t *testing.T) {
316
316
templateID ,
317
317
)
318
318
319
- controller . Reconcile ( ctx , nil )
319
+ require . NoError ( t , controller . ReconcileAll ( ctx ) )
320
320
321
321
createdNewPrebuild := false
322
322
deletedOldPrebuild := true
@@ -365,7 +365,7 @@ func TestInactiveTemplateVersionPrebuilds(t *testing.T) {
365
365
// * a third is not running because its latest build was a start transition but the build failed
366
366
// * a fourth is not running because its latest build was a start transition but the build was canceled
367
367
// when we trigger the reconciliation loop for all templates
368
- controller . Reconcile ( ctx , nil )
368
+ require . NoError ( t , controller . ReconcileAll ( ctx ) )
369
369
// then the four non running prebuilds are deleted
370
370
// and 1 of the running prebuilds is deleted
371
371
// because stopped, deleted and failed builds are not considered running in terms of the definition of "running" above.
0 commit comments