Skip to content

roaring64: fix TestSetAndGetBigTimestamp (non-UTC)#465

Merged
lemire merged 2 commits intoRoaringBitmap:masterfrom
starius:fix-timestamp-test
Jul 10, 2025
Merged

roaring64: fix TestSetAndGetBigTimestamp (non-UTC)#465
lemire merged 2 commits intoRoaringBitmap:masterfrom
starius:fix-timestamp-test

Conversation

@starius
Copy link
Copy Markdown
Contributor

@starius starius commented Jan 10, 2025

The test was broken if local timezone it not UTC. For example, in timezone UTC-03:00 it failed with this error:

--- FAIL: TestSetAndGetBigTimestamp (0.00s)
    bsi64_test.go:111:
      Error Trace:    bsi64_test.go:111
      Error:          Not equal:
         expected: "3024-10-23T16:55:46.763295273Z"
         actual  : "3024-10-23T13:55:46.763295273-03:00"

The test was broken if local timezone it not UTC. For example, in timezone
UTC-03:00 it failed with this error:

--- FAIL: TestSetAndGetBigTimestamp (0.00s)
    bsi64_test.go:111:
      Error Trace:    bsi64_test.go:111
      Error:          Not equal:
         expected: "3024-10-23T16:55:46.763295273Z"
         actual  : "3024-10-23T13:55:46.763295273-03:00"
@lemire
Copy link
Copy Markdown
Member

lemire commented Jan 10, 2025

Let us run tests!

@lemire lemire merged commit 3ef13b7 into RoaringBitmap:master Jul 10, 2025
7 checks 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