Skip to content

Commit

Permalink
Merge pull request #394 from nyaruka/update_testdb
Browse files Browse the repository at this point in the history
Update test database
  • Loading branch information
rowanseymour authored Jan 7, 2025
2 parents 0fa2546 + 08ad4b3 commit 7ec8355
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tasks/handler/ctasks/wait_expiration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified testsuite/testfiles/postgres.dump
Binary file not shown.
1 change: 1 addition & 0 deletions testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ec8355

Please sign in to comment.