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

Add tests for template variables #52

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

moorereason
Copy link
Contributor

Tests to go with PR #47.

@tierpod
Copy link
Owner

tierpod commented Apr 14, 2024

Hi @moorereason !

I'm sorry to bother you again, but could you please update this PR against master? I merged #48 and now test fails because dmarc.Parse signature changed.

@tierpod tierpod self-assigned this Apr 14, 2024
Update tests since the data model changed after PR tierpod#48 was merged.
@tierpod
Copy link
Owner

tierpod commented Apr 15, 2024

Thanks for fixes!

I've faced with another unexpected problem - the tests on my PC failed because I have a different time zone than you.

As a quick fix, I can suggest to change timezone in Makefile

go test -mod=vendor ./cmd/... ./pkg/...

I believe, there is a better way to deal with such test cases, but we (or I) can investigate this later.

I tested with

TZ=America/Chicago go test -mod=vendor ./cmd/... ./pkg/...

and tests passed

@moorereason
Copy link
Contributor Author

TZ=America/Chicago go test -mod=vendor ./cmd/... ./pkg/...

Good catch. I should be able to fix this within the test in the next day or two.

@tierpod tierpod merged commit abf80ca into tierpod:master Apr 16, 2024
1 check passed
@moorereason moorereason deleted the feature-outputtests branch April 16, 2024 03:57
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.

2 participants