@@ -284,7 +284,7 @@ func TestWorkflowsRegistration(t *testing.T) {
284284
285285 t .Run ("DoubleRegistrationWithoutName" , func (t * testing.T ) {
286286 // Create a fresh DBOS context for this test
287- freshCtx := setupDBOS (t , false , false ) // Don't check for leaks and don't reset DB
287+ freshCtx := setupDBOS (t , false , true ) // Don't reset DB but do check for leaks
288288
289289 // First registration should work
290290 RegisterWorkflow (freshCtx , simpleWorkflow )
@@ -302,7 +302,7 @@ func TestWorkflowsRegistration(t *testing.T) {
302302
303303 t .Run ("DoubleRegistrationWithCustomName" , func (t * testing.T ) {
304304 // Create a fresh DBOS context for this test
305- freshCtx := setupDBOS (t , false , false ) // Don't check for leaks and don't reset DB
305+ freshCtx := setupDBOS (t , false , true ) // Don't reset DB but do check for leaks
306306
307307 // First registration with custom name should work
308308 RegisterWorkflow (freshCtx , simpleWorkflow , WithWorkflowName ("custom-workflow" ))
@@ -320,7 +320,7 @@ func TestWorkflowsRegistration(t *testing.T) {
320320
321321 t .Run ("DifferentWorkflowsSameCustomName" , func (t * testing.T ) {
322322 // Create a fresh DBOS context for this test
323- freshCtx := setupDBOS (t , false , false ) // Don't check for leaks and don't reset DB
323+ freshCtx := setupDBOS (t , false , true ) // Don't reset DB but do check for leaks
324324
325325 // First registration with custom name should work
326326 RegisterWorkflow (freshCtx , simpleWorkflow , WithWorkflowName ("same-name" ))
@@ -338,7 +338,7 @@ func TestWorkflowsRegistration(t *testing.T) {
338338
339339 t .Run ("RegisterAfterLaunchPanics" , func (t * testing.T ) {
340340 // Create a fresh DBOS context for this test
341- freshCtx := setupDBOS (t , false , false ) // Don't check for leaks and don't reset DB
341+ freshCtx := setupDBOS (t , false , true ) // Don't reset DB but do check for leaks
342342
343343 // Launch DBOS context
344344 err := freshCtx .Launch ()
0 commit comments