1
0

test: remove time checks

This commit is contained in:
James Houlahan
2020-06-17 15:29:32 +02:00
parent 02804d067c
commit 012be60311
8 changed files with 55 additions and 63 deletions

View File

@ -172,15 +172,6 @@ func messagesContainsMessageRow(account *accounts.TestAccount, allMessages []*pm
matches := true
for n, cell := range row.Cells {
switch head[n].Value {
case "time":
switch cell.Value {
case "now":
if (time.Now().Unix() - message.Time) > 5 {
matches = false
}
default:
return false, fmt.Errorf("unexpected time value: %s", cell.Value)
}
case "from":
address := ctx.EnsureAddress(account.Username(), cell.Value)
if !areAddressesSame(message.Sender.Address, address) {