Skip to content

Commit 9ea4ee8

Browse files
committed
Update test database
1 parent ef559be commit 9ea4ee8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/tasks/handler/handler_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,13 @@ func TestTimedEvents(t *testing.T) {
714714

715715
expiration := time.Now()
716716

717-
// set both to be active (this requires us to disable the status change trigger for a bit which asserts flows can't cross back into active status)
717+
// set both to be active (this requires us to disable the status change triggers)
718718
db.MustExec(`ALTER TABLE flows_flowrun DISABLE TRIGGER temba_flowrun_status_change`)
719+
db.MustExec(`ALTER TABLE flows_flowsession DISABLE TRIGGER temba_flowsession_status_change`)
719720
db.MustExec(`UPDATE flows_flowrun SET status = 'W' WHERE id = $1`, runID)
720721
db.MustExec(`UPDATE flows_flowsession SET status = 'W', wait_started_on = NOW(), wait_expires_on = $2 WHERE id = $1`, sessionID, expiration)
721722
db.MustExec(`ALTER TABLE flows_flowrun ENABLE TRIGGER temba_flowrun_status_change`)
723+
db.MustExec(`ALTER TABLE flows_flowsession ENABLE TRIGGER temba_flowsession_status_change`)
722724

723725
// try to expire the run
724726
task := handler.NewExpirationTask(testdata.Org1.ID, testdata.Cathy.ID, sessionID, expiration)

mailroom_test.dump

1.04 KB
Binary file not shown.

0 commit comments

Comments
 (0)