Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use valid flux in pkger test templates #19465

Merged
merged 3 commits into from
Oct 19, 2020
Merged

Conversation

glinton
Copy link
Contributor

@glinton glinton commented Aug 28, 2020

Update pkger test templates to use valid flux to avoid found unexpected argument end error. Any test template with a v.dashboardVariable will error with: undefined identifier v. Since they are meant for tests and not for consuming, it seems moot to update all the v.* references in pkger/testdata.

The error handling of ParseSignedDuration and ParseTime avoids a panic here by using a seemingly sane default if bad input is used:

@glinton glinton requested a review from a team as a code owner August 28, 2020 23:11
@glinton glinton removed the request for review from a team October 1, 2020 23:03
@glinton glinton merged commit b63bcb4 into master Oct 19, 2020
@glinton glinton deleted the fix/templateParseFails branch October 19, 2020 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants