diff --git a/core/tasks/handler/ctasks/wait_expiration_test.go b/core/tasks/handler/ctasks/wait_expiration_test.go index 76a2f8b0e..6d76d1592 100644 --- a/core/tasks/handler/ctasks/wait_expiration_test.go +++ b/core/tasks/handler/ctasks/wait_expiration_test.go @@ -154,11 +154,11 @@ func TestTimedEvents(t *testing.T) { expiration := time.Now() // set both to be active (this requires us to disable the status change triggers) - rt.DB.MustExec(`ALTER TABLE flows_flowrun DISABLE TRIGGER temba_flowrun_status_change`) + rt.DB.MustExec(`ALTER TABLE flows_flowrun DISABLE TRIGGER temba_flowrun_on_change`) rt.DB.MustExec(`ALTER TABLE flows_flowsession DISABLE TRIGGER temba_flowsession_status_change`) rt.DB.MustExec(`UPDATE flows_flowrun SET status = 'W' WHERE id = $1`, runID) rt.DB.MustExec(`UPDATE flows_flowsession SET status = 'W', wait_started_on = NOW(), wait_expires_on = $2 WHERE id = $1`, sessionID, expiration) - rt.DB.MustExec(`ALTER TABLE flows_flowrun ENABLE TRIGGER temba_flowrun_status_change`) + rt.DB.MustExec(`ALTER TABLE flows_flowrun ENABLE TRIGGER temba_flowrun_on_change`) rt.DB.MustExec(`ALTER TABLE flows_flowsession ENABLE TRIGGER temba_flowsession_status_change`) // try to expire the run diff --git a/testsuite/testfiles/postgres.dump b/testsuite/testfiles/postgres.dump index 94746c9dd..b9ef57879 100644 Binary files a/testsuite/testfiles/postgres.dump and b/testsuite/testfiles/postgres.dump differ diff --git a/testsuite/testsuite.go b/testsuite/testsuite.go index 601346091..670aecca8 100644 --- a/testsuite/testsuite.go +++ b/testsuite/testsuite.go @@ -290,6 +290,7 @@ DELETE FROM msgs_msg; DELETE FROM flows_flowrun; DELETE FROM flows_flowcategorycount; DELETE FROM flows_flowactivitycount; +DELETE FROM flows_flowresultcount; DELETE FROM flows_flowstartcount; DELETE FROM flows_flowstart_contacts; DELETE FROM flows_flowstart_groups;