@@ -33,7 +33,7 @@ func TestConfig(t *testing.T) {
3333 require .NoError (t , err )
3434 defer func () {
3535 if ctx != nil {
36- ctx . Shutdown (1 * time .Minute )
36+ Shutdown (ctx , 1 * time .Minute )
3737 }
3838 }() // Clean up executor
3939
@@ -100,7 +100,7 @@ func TestConfig(t *testing.T) {
100100 require .NoError (t , err )
101101 defer func () {
102102 if ctx != nil {
103- ctx . Shutdown (1 * time .Minute )
103+ Shutdown (ctx , 1 * time .Minute )
104104 }
105105 }()
106106
@@ -121,7 +121,7 @@ func TestConfig(t *testing.T) {
121121 require .NoError (t , err )
122122 defer func () {
123123 if ctx != nil {
124- ctx . Shutdown (1 * time .Minute )
124+ Shutdown (ctx , 1 * time .Minute )
125125 }
126126 }()
127127
@@ -143,7 +143,7 @@ func TestConfig(t *testing.T) {
143143 require .NoError (t , err )
144144 defer func () {
145145 if ctx != nil {
146- ctx . Shutdown (1 * time .Minute )
146+ Shutdown (ctx , 1 * time .Minute )
147147 }
148148 }()
149149
@@ -168,7 +168,7 @@ func TestConfig(t *testing.T) {
168168 require .NoError (t , err )
169169 defer func () {
170170 if ctx != nil {
171- ctx . Shutdown (1 * time .Minute )
171+ Shutdown (ctx , 1 * time .Minute )
172172 }
173173 }()
174174
@@ -190,7 +190,7 @@ func TestConfig(t *testing.T) {
190190 require .NoError (t , err )
191191 defer func () {
192192 if ctx != nil {
193- ctx . Shutdown (1 * time .Minute )
193+ Shutdown (ctx , 1 * time .Minute )
194194 }
195195 }()
196196
@@ -262,7 +262,7 @@ func TestConfig(t *testing.T) {
262262 assert .Equal (t , int64 (1 ), version , "migration version should be 1 (after initial migration)" )
263263
264264 // Test manual shutdown and recreate
265- ctx . Shutdown (1 * time .Minute )
265+ Shutdown (ctx , 1 * time .Minute )
266266
267267 // Recreate context - should have no error since DB is already migrated
268268 ctx2 , err := NewDBOSContext (context .Background (), Config {
@@ -272,7 +272,7 @@ func TestConfig(t *testing.T) {
272272 require .NoError (t , err )
273273 defer func () {
274274 if ctx2 != nil {
275- ctx2 . Shutdown (1 * time .Minute )
275+ Shutdown (ctx2 , 1 * time .Minute )
276276 }
277277 }()
278278
@@ -301,7 +301,7 @@ func TestCustomSystemDBSchema(t *testing.T) {
301301 require .NoError (t , err )
302302 defer func () {
303303 if ctx != nil {
304- ctx . Shutdown (1 * time .Minute )
304+ Shutdown (ctx , 1 * time .Minute )
305305 }
306306 }()
307307
@@ -425,7 +425,7 @@ func TestCustomSystemDBSchema(t *testing.T) {
425425 RegisterWorkflow (ctx , recvSetEventWorkflow )
426426
427427 // Launch the DBOS context
428- ctx . Launch ()
428+ Launch (ctx )
429429
430430 // Test RunWorkflow - start both workflows that will communicate with each other
431431 workflowAID := uuid .NewString ()
@@ -548,7 +548,7 @@ func TestCustomPool(t *testing.T) {
548548 require .NotNil (t , customdbosContext )
549549
550550 dbosCtx , ok := customdbosContext .(* dbosContext )
551- defer dbosCtx . Shutdown (10 * time .Second )
551+ defer Shutdown (dbosCtx , 10 * time .Second )
552552 require .True (t , ok )
553553
554554 sysDB , ok := dbosCtx .systemDB .(* sysDB )
@@ -570,9 +570,9 @@ func TestCustomPool(t *testing.T) {
570570 RegisterWorkflow (customdbosContext , recvSetEventWorkflowCustom )
571571
572572 // Launch the DBOS context
573- err = customdbosContext . Launch ()
573+ err = Launch (customdbosContext )
574574 require .NoError (t , err )
575- defer dbosCtx . Shutdown (1 * time .Minute )
575+ defer Shutdown (dbosCtx , 1 * time .Minute )
576576
577577 // Test RunWorkflow - start both workflows that will communicate with each other
578578 workflowAID := uuid .NewString ()
@@ -643,9 +643,9 @@ func TestCustomPool(t *testing.T) {
643643 RegisterWorkflow (dbosCtx , wf )
644644
645645 // Launch the DBOS context
646- err = dbosCtx . Launch ()
646+ err = Launch (dbosCtx )
647647 require .NoError (t , err )
648- defer dbosCtx . Shutdown (1 * time .Minute )
648+ defer Shutdown (dbosCtx , 1 * time .Minute )
649649
650650 // Run a workflow
651651 _ , err = RunWorkflow (dbosCtx , wf , "test-input" )
0 commit comments