Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Oct 31, 2019
1 parent 3c7b6f5 commit 0d930ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/session_triggered_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func TestQuerySessionTriggered(t *testing.T) {
},
SQLAssertions: []SQLAssertion{
SQLAssertion{
SQL: "select count(*) from flows_flowstart where flow_id = $1 AND status = 'P' AND query = 'name ~ Cathy' AND parent_summary IS NOT NULL;",
SQL: `select count(*) from flows_flowstart where flow_id = $1 AND status = 'P' AND query = 'name ~ "Cathy"' AND parent_summary IS NOT NULL;`,
Args: []interface{}{models.FavoritesFlowID},
Count: 1,
},
Expand All @@ -125,7 +125,7 @@ func TestQuerySessionTriggered(t *testing.T) {
assert.Equal(t, start.CreateContact(), true)
assert.Equal(t, 0, len(start.ContactIDs()))
assert.Equal(t, 0, len(start.GroupIDs()))
assert.Equal(t, "name ~ Cathy", start.Query())
assert.Equal(t, `name ~ "Cathy"`, start.Query())
assert.Equal(t, start.FlowID(), favoriteFlow.ID())
return nil
},
Expand Down

0 comments on commit 0d930ea

Please sign in to comment.