Skip to content

Commit

Permalink
minor addition to whitebox test (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
matslina authored Jan 6, 2024
1 parent e30f5c6 commit f89f8e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// Don't love this, but some internal functions are finicky and need
// testing.

func TestStaticRangePerDate(t *testing.T) {
func TestWhiteboxRangePerDate(t *testing.T) {
tzET, err := time.LoadLocation("America/New_York")
require.NoError(t, err)

Expand Down Expand Up @@ -150,7 +150,7 @@ func TestStaticRangePerDate(t *testing.T) {
}
}

func TestRealtimeDelayFromOffsetAndTime(t *testing.T) {
func TestWhiteboxDelayFromOffsetAndTime(t *testing.T) {

// TODO: Would be great to flesh this out.

Expand All @@ -162,6 +162,9 @@ func TestRealtimeDelayFromOffsetAndTime(t *testing.T) {
}{
{time.UTC, "23h6m", "2020-01-15 23:05:55 +0000 UTC", "-5s"},
{time.UTC, "23h11m", "2020-01-15 23:11:25 +0000 UTC", "25s"},
{time.UTC, "24h10m", "2020-01-01 00:09:00 +0000 UTC", "-1m"},
{time.UTC, "24h10m", "2020-01-01 23:50:00 +0000 UTC", "-20m"},
{time.UTC, "24h10m", "2020-01-01 00:11:00 +0000 UTC", "1m"},
} {
offset, err := time.ParseDuration(tc.eventOffset)
require.NoError(t, err)
Expand Down

0 comments on commit f89f8e9

Please sign in to comment.