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: update timezone in test #340

Merged
merged 1 commit into from
Jul 30, 2024
Merged

fix: update timezone in test #340

merged 1 commit into from
Jul 30, 2024

Conversation

acme
Copy link
Contributor

@acme acme commented Jul 25, 2024

The default time value assertion in the test_default_local_var_recv() function uses the "GMT" time zone, but local.go when creating a default TIME value uses a "UTC" time standard. This causes tests to fail when run in the UK (BST):

--- FAIL: TestTester (0.00s)
    --- FAIL: TestTester/empty_and_notset_value_test (0.00s)
        runner_test.go:386: Test case "default value check" raises error:
        Assertion Error: Assertion error:
        expect=Thu, 01 Jan 1970 01:00:00 GMT,
        actual=Thu, 01 Jan 1970 00:00:00 GMT
FAIL

To resolve this, update the test to use "UTC".

The default time value assertion in the test_default_local_var_recv() function
uses the "GMT" time zone, but local.go when creating a default TIME value uses
a "UTC" time standard. This causes tests to fail when run in the UK (BST):

```
--- FAIL: TestTester (0.00s)
    --- FAIL: TestTester/empty_and_notset_value_test (0.00s)
        runner_test.go:386: Test case "default value check" raises error: Assertion Error: Assertion error: expect=Thu, 01 Jan 1970 01:00:00 GMT, actual=Thu, 01 Jan 1970 00:00:00 GMT
FAIL
```

To resolve this, update the test to use "UTC".
Copy link
Owner

@ysugimoto ysugimoto left a comment

Choose a reason for hiding this comment

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

Thanks!

@ysugimoto ysugimoto merged commit 83d14c0 into ysugimoto:main Jul 30, 2024
1 check passed
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