Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Jul 12, 2017
1 parent 98bcf7e commit 783ac87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backends/rapidpro/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (ts *MsgTestSuite) TestStatus() {

// error our msg
now = time.Now().In(time.UTC)
status = courier.NewStatusUpdateForExternalID(channel, "ext1", courier.MsgErrored)
status = ts.b.NewMsgStatusForExternalID(channel, "ext1", courier.MsgErrored)
err = ts.b.WriteMsgStatus(status)
ts.NoError(err)
m, err = readMsgFromDB(ts.b, courier.NewMsgID(10000))
Expand All @@ -180,7 +180,7 @@ func (ts *MsgTestSuite) TestStatus() {
ts.True(m.NextAttempt_.After(now))

// second go
status = courier.NewStatusUpdateForExternalID(channel, "ext1", courier.MsgErrored)
status = ts.b.NewMsgStatusForExternalID(channel, "ext1", courier.MsgErrored)
err = ts.b.WriteMsgStatus(status)
ts.NoError(err)
m, err = readMsgFromDB(ts.b, courier.NewMsgID(10000))
Expand All @@ -189,7 +189,7 @@ func (ts *MsgTestSuite) TestStatus() {
ts.Equal(m.ErrorCount_, 2)

// third go
status = courier.NewStatusUpdateForExternalID(channel, "ext1", courier.MsgErrored)
status = ts.b.NewMsgStatusForExternalID(channel, "ext1", courier.MsgErrored)
err = ts.b.WriteMsgStatus(status)
ts.NoError(err)
m, err = readMsgFromDB(ts.b, courier.NewMsgID(10000))
Expand Down

0 comments on commit 783ac87

Please sign in to comment.