Skip to content

Commit

Permalink
timeout added to e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyinbabal committed Aug 28, 2023
1 parent 7784fbc commit 6871b35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test: system-check
@go test -v -race ./...

test-integration-slack: system-check
@go test -v -tags=integration -race -count=1 ./test/e2e/... -run "TestSlack"
@go test -timeout=20m -v -tags=integration -race -count=1 ./test/e2e/... -run "TestSlack"

test-integration-discord: system-check
@go test -v -tags=integration -race -count=1 ./test/e2e/... -run "TestDiscord"
Expand Down
5 changes: 0 additions & 5 deletions test/commplatform/slack_tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"log"
"regexp"
"strings"
"testing"
Expand Down Expand Up @@ -377,10 +376,6 @@ func (s *SlackTester) WaitForMessagePostedWithAttachment(userID, channelID strin
func (s *SlackTester) WaitForInteractiveMessagePostedRecentlyEqual(userID, channelID string, msg interactive.CoreMessage) error {
printedBlocks := sPrintBlocks(bot.NewSlackRenderer().RenderAsSlackBlocks(msg))
return s.WaitForInteractiveMessagePosted(userID, channelID, s.cfg.RecentMessagesLimit, func(msg string) (bool, int, string) {
log.Print("Comparing:")
log.Print(printedBlocks)
log.Print("With:")
log.Print(msg)
if !strings.EqualFold(msg, printedBlocks) {
count := diff.CountMatchBlock(printedBlocks, msg)
msgDiff := diff.Diff(printedBlocks, msg)
Expand Down

0 comments on commit 6871b35

Please sign in to comment.