make: if timeout not set, use 20m instead of default 10m

go test's default timeout is 10m, which is no longer enough during
integration tests. This commit increases it to 20m.
This commit is contained in:
Johan T. Halseth 2018-07-23 17:10:21 +02:00
parent 098cd940e3
commit 44982ea98d
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

View File

@ -20,9 +20,11 @@ TEST_FLAGS += -test.run=TestLightningNetworkDaemon/$(icase)
endif
# If a timeout was requested, construct initialize the proper flag for the go
# test command.
# test command. If not, we set 20m (up from the default 10m).
ifneq ($(timeout),)
TEST_FLAGS += -test.timeout=$(timeout)
else
TEST_FLAGS += -test.timeout=20m
endif
# UNIT_TARGTED is undefined iff a specific package and/or unit test case is