@@ -163,7 +163,7 @@ func TestSemaphoreTmplLevel(t *testing.T) {
163
163
cancel , controller := newController ()
164
164
defer cancel ()
165
165
ctx := context .Background ()
166
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
166
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
167
167
}, workflowExistenceFunc )
168
168
var cm apiv1.ConfigMap
169
169
wfv1 .MustUnmarshal ([]byte (configMap ), & cm )
@@ -224,7 +224,7 @@ func TestSemaphoreScriptTmplLevel(t *testing.T) {
224
224
cancel , controller := newController ()
225
225
defer cancel ()
226
226
ctx := context .Background ()
227
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
227
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
228
228
}, workflowExistenceFunc )
229
229
var cm apiv1.ConfigMap
230
230
wfv1 .MustUnmarshal ([]byte (configMap ), & cm )
@@ -284,7 +284,7 @@ func TestSemaphoreScriptConfigMapInDifferentNamespace(t *testing.T) {
284
284
cancel , controller := newController ()
285
285
defer cancel ()
286
286
ctx := context .Background ()
287
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
287
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
288
288
}, workflowExistenceFunc )
289
289
var cm apiv1.ConfigMap
290
290
wfv1 .MustUnmarshal ([]byte (configMap ), & cm )
@@ -346,7 +346,7 @@ func TestSemaphoreResourceTmplLevel(t *testing.T) {
346
346
cancel , controller := newController ()
347
347
defer cancel ()
348
348
ctx := context .Background ()
349
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
349
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
350
350
}, workflowExistenceFunc )
351
351
var cm apiv1.ConfigMap
352
352
wfv1 .MustUnmarshal ([]byte (configMap ), & cm )
@@ -408,7 +408,7 @@ func TestSemaphoreWithOutConfigMap(t *testing.T) {
408
408
defer cancel ()
409
409
410
410
ctx := context .Background ()
411
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
411
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
412
412
}, workflowExistenceFunc )
413
413
414
414
t .Run ("SemaphoreRefWithOutConfigMap" , func (t * testing.T ) {
@@ -464,7 +464,7 @@ func TestMutexInDAG(t *testing.T) {
464
464
cancel , controller := newController ()
465
465
defer cancel ()
466
466
ctx := context .Background ()
467
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
467
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
468
468
}, workflowExistenceFunc )
469
469
t .Run ("MutexWithDAG" , func (t * testing.T ) {
470
470
wf := wfv1 .MustUnmarshalWorkflow (DAGWithMutex )
@@ -536,7 +536,7 @@ func TestMutexInDAGWithInterpolation(t *testing.T) {
536
536
cancel , controller := newController ()
537
537
defer cancel ()
538
538
ctx := context .Background ()
539
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
539
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
540
540
}, workflowExistenceFunc )
541
541
t .Run ("InterpolatedMutexWithDAG" , func (t * testing.T ) {
542
542
wf := wfv1 .MustUnmarshalWorkflow (DAGWithInterpolatedMutex )
@@ -601,7 +601,7 @@ func TestSynchronizationWithRetry(t *testing.T) {
601
601
cancel , controller := newController ()
602
602
defer cancel ()
603
603
ctx := context .Background ()
604
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
604
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
605
605
}, workflowExistenceFunc )
606
606
var cm apiv1.ConfigMap
607
607
wfv1 .MustUnmarshal ([]byte (configMap ), & cm )
@@ -809,7 +809,7 @@ func TestSynchronizationWithStep(t *testing.T) {
809
809
cancel , controller := newController ()
810
810
defer cancel ()
811
811
ctx := context .Background ()
812
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
812
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
813
813
}, workflowExistenceFunc )
814
814
var cm apiv1.ConfigMap
815
815
wfv1 .MustUnmarshal ([]byte (configMap ), & cm )
@@ -886,7 +886,7 @@ func TestSynchronizationWithStepRetry(t *testing.T) {
886
886
cancel , controller := newController ()
887
887
defer cancel ()
888
888
ctx := context .Background ()
889
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
889
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
890
890
}, workflowExistenceFunc )
891
891
var cm apiv1.ConfigMap
892
892
wfv1 .MustUnmarshal ([]byte (configMap ), & cm )
@@ -950,7 +950,7 @@ func TestSynchronizationForPendingShuttingdownWfs(t *testing.T) {
950
950
cancel , controller := newController ()
951
951
defer cancel ()
952
952
ctx := context .Background ()
953
- controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), func (key string ) {
953
+ controller .syncManager = sync .NewLockManager (GetSyncLimitFunc (ctx , controller .kubeclientset ), 0 , func (key string ) {
954
954
}, workflowExistenceFunc )
955
955
956
956
t .Run ("PendingShuttingdownTerminatingWf" , func (t * testing.T ) {
0 commit comments