Skip to content

Commit 4d7932a

Browse files
committed
Fix HIST test date, which could sometimes fall on a weekend
1 parent e709895 commit 4d7932a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func TestLast(t *testing.T) {
6161

6262
func TestHIST_OneDate(t *testing.T) {
6363
c := setupTestClient()
64-
result, err := c.GetHIST(time.Now().Add(-48 * time.Hour))
64+
testDate := time.Date(2017, time.June, 6, 0, 0, 0, 0, time.UTC)
65+
result, err := c.GetHIST(testDate)
6566
if err != nil {
6667
t.Fatal(err)
6768
}

0 commit comments

Comments
 (0)