Skip to content

lntest/timeouts: fix timeout build predicates#4781

Merged
cfromknecht merged 2 commits into
lightningnetwork:masterfrom
cfromknecht:fix-timeout-build-tags
Nov 18, 2020
Merged

lntest/timeouts: fix timeout build predicates#4781
cfromknecht merged 2 commits into
lightningnetwork:masterfrom
cfromknecht:fix-timeout-build-tags

Conversation

@cfromknecht
Copy link
Copy Markdown
Contributor

@cfromknecht cfromknecht commented Nov 18, 2020

This PR removes spaces from the timeout build predicates, which causes parsing errors
when compiling/linting darwin targets. We also correct the timeouts to use the etcd
timeouts when running w/ darwin,kvdb_etcd, which currently fall back to plain darwin
timeouts.

Otherwise this breaks various conditional compilation targets and the
linter.
@cfromknecht cfromknecht added this to the 0.12.0 milestone Nov 18, 2020
Currently trying to run etcd tests on darwin will cause the timeouts to
improperly select timeouts_darwin.go which are stricter than
timeouts_etcd.go. We fix this by always defaulting to timeouts_etcd.go
no matter the platform, and only falling back to timeouts_darwin.go if
the kvdb_etcd tag is not present.
@cfromknecht cfromknecht changed the title lntest/timeouts: remove spaces from build predicates lntest/timeouts: fix timeout build predicates Nov 18, 2020
Copy link
Copy Markdown
Collaborator

@bhandras bhandras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@cfromknecht cfromknecht merged commit 1efef51 into lightningnetwork:master Nov 18, 2020
@cfromknecht cfromknecht deleted the fix-timeout-build-tags branch November 18, 2020 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants