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:
parent
098cd940e3
commit
44982ea98d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user