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

@ -20,9 +20,11 @@ TEST_FLAGS += -test.run=TestLightningNetworkDaemon/$(icase)
endif endif
# If a timeout was requested, construct initialize the proper flag for the go # 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),) ifneq ($(timeout),)
TEST_FLAGS += -test.timeout=$(timeout) TEST_FLAGS += -test.timeout=$(timeout)
else
TEST_FLAGS += -test.timeout=20m
endif endif
# UNIT_TARGTED is undefined iff a specific package and/or unit test case is # UNIT_TARGTED is undefined iff a specific package and/or unit test case is