diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-04-27 13:50:49 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-04-27 07:50:49 -0400 |
commit | c540e801662e2d672bbaa832e93acf480b0b0c65 (patch) | |
tree | c70ad3521f36d75653af70427e3eaaf9a6e86a87 /api4 | |
parent | 7307156c49b194c4afd946cd9e57715d45b5b21d (diff) | |
download | chat-c540e801662e2d672bbaa832e93acf480b0b0c65.tar.gz chat-c540e801662e2d672bbaa832e93acf480b0b0c65.tar.bz2 chat-c540e801662e2d672bbaa832e93acf480b0b0c65.zip |
alsways get the last message from inbucket (#6251)
Diffstat (limited to 'api4')
-rw-r--r-- | api4/team_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/team_test.go b/api4/team_test.go index 7fd240480..95b07e248 100644 --- a/api4/team_test.go +++ b/api4/team_test.go @@ -1406,10 +1406,10 @@ func TestInviteUsersToTeam(t *testing.T) { t.Log("No email was received, maybe due load on the server. Disabling this verification") } if err == nil && len(resultsMailbox) > 0 { - if !strings.ContainsAny(resultsMailbox[0].To[0], email) { + if !strings.ContainsAny(resultsMailbox[len(resultsMailbox)-1].To[0], email) { t.Fatal("Wrong To recipient") } else { - if resultsEmail, err := utils.GetMessageFromMailbox(email, resultsMailbox[0].ID); err == nil { + if resultsEmail, err := utils.GetMessageFromMailbox(email, resultsMailbox[len(resultsMailbox)-1].ID); err == nil { if resultsEmail.Subject != expectedSubject { t.Log(resultsEmail.Subject) t.Log(expectedSubject) |