Skip to content

Commit

Permalink
Put mocked scope before 10 second
Browse files Browse the repository at this point in the history
  • Loading branch information
berejant committed Nov 14, 2023
1 parent 4ec6c09 commit cecc1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DelayedDeleteMessageHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ func (h *DelayedDeleteMessageHandler) AddMessage(chatId int, messageId int, time
})

go func() {
time.Sleep(timeout)
time.Sleep(timeout - time.Second*10)

deleteMessageMock := mocha.Post(expect.URLPath("/deleteMessage")).
Body(expectChatId(chatId), expectMessageId(messageId)).
Reply(getDeleteMessageSuccessResponse())
Reply(getDeleteMessageSuccessResponse()).Repeat(1)

expectDeleteMessageScope := mocks.TelegramMockServer.mocha.AddMocks(deleteMessageMock)

Expand Down

0 comments on commit cecc1dd

Please sign in to comment.