Skip to content

Commit 87f8ae0

Browse files
fix: Fix go vet issue and missing parenthesis in unit test
1 parent af072d3 commit 87f8ae0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/session_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ func (s *testSession) mailboxCreatedCustom(user string, name []string, flags, pe
175175
func (s *testSession) messageCreated(user string, mailboxID imap.LabelID, literal []byte, internalDate time.Time, flags ...string) imap.MessageID {
176176
messageID := imap.MessageID(utils.NewRandomMessageID())
177177

178-
s.messageCreatedWithID(user, messageID, mailboxID, literal, flags...)
178+
s.messageCreatedWithID(user, messageID, mailboxID, literal, internalDate, flags...)
179179

180180
return messageID
181181
}
182182

183-
func (s *testSession) messageCreatedWithID(user string, messageID imap.MessageID, mailboxID imap.LabelID, literal []byte, flags ...string) {
183+
func (s *testSession) messageCreatedWithID(user string, messageID imap.MessageID, mailboxID imap.LabelID, literal []byte, internalDate time.Time, flags ...string) {
184184
require.NoError(s.tb, s.conns[s.userIDs[user]].MessageCreated(
185185
imap.Message{
186186
ID: messageID,

tests/updates_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ func TestMessageAddWithSameID(t *testing.T) {
286286
c.C("A001 SELECT mbox").OK("A001")
287287

288288
c.C("A003 FETCH 1 (FLAGS)")
289-
c.S(`* 1 FETCH (FLAGS (\Draft \Flagged \Marked \Recent \bar \foo)`)
289+
c.S(`* 1 FETCH (FLAGS (\Draft \Flagged \Marked \Recent \bar \foo))`)
290290
c.OK("A003")
291291
})
292292
}

0 commit comments

Comments
 (0)