Browse Source

Increase test timeout

Maxim Vladimirskiy 7 years ago
parent
commit
dfdbc3f570
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Makefile
  2. 1 1
      functional_consumer_test.go

+ 1 - 1
Makefile

@@ -4,7 +4,7 @@ default: fmt vet errcheck test
 test:
 	echo "" > coverage.txt
 	for d in `go list ./... | grep -v vendor`; do \
-		go test -v -timeout 60s -race -coverprofile=profile.out -covermode=atomic $$d || exit 1; \
+		go test -p 1 -v -timeout 90s -race -coverprofile=profile.out -covermode=atomic $$d || exit 1; \
 		if [ -f profile.out ]; then \
 			cat profile.out >> coverage.txt; \
 			rm profile.out; \

+ 1 - 1
functional_consumer_test.go

@@ -218,7 +218,7 @@ consumerVersionLoop:
 						consVer, i, prodMsg2Str(prodMsg), consMsg2Str(consMsg))
 					continue consumerVersionLoop
 				}
-			case <-time.After(time.Second):
+			case <-time.After(3 * time.Second):
 				t.Fatalf("Timeout waiting for: index=%d, offset=%d, msg=%s", i, prodMsg.Offset, prodMsg.Value)
 			}
 		}