-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark message send to avoid duplicate send on final status update #795
base: main
Are you sure you want to change the base?
Conversation
258c283
to
c0b2b8f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #795 +/- ##
=======================================
Coverage 74.52% 74.52%
=======================================
Files 111 111
Lines 13450 13462 +12
=======================================
+ Hits 10023 10032 +9
- Misses 2697 2698 +1
- Partials 730 732 +2 ☔ View full report in Codecov by Sentry. |
42b243d
to
1a29d1b
Compare
backends/rapidpro/backend_test.go
Outdated
ts.True(sent) | ||
|
||
m = readMsgFromDB(ts.b, msg.ID()) | ||
ts.Equal(m.Status_, courier.MsgStatusWired) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems wrong but I'm still not getting how a message in this state could be picked up 5 minutes later for retrying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean Failed should not be changed back to Wired?
ts.NoError(err) | ||
|
||
m := readMsgFromDB(ts.b, msg.ID()) | ||
ts.Equal(m.Status_, courier.MsgStatusFailed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rowanseymour any idea why this line fails for package tests but pass for the individual test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1a29d1b
to
ad459db
Compare
Prevent failed msgs to change status back to some other status
No description provided.