diff --git a/server/public_test.go b/server/public_test.go index 4cc0fce1..fc8a14d8 100644 --- a/server/public_test.go +++ b/server/public_test.go @@ -563,6 +563,15 @@ func httpTestsBitcoinType(t *testing.T, ts *httptest.Server) { `{"ts":7980386400,"rates":{"usd":-1}}`, }, }, + { + name: "apiFiatRates future timestamp, all currencies", + r: newGetRequest(ts.URL + "/api/v2/tickers?timestamp=7980386400"), + status: http.StatusOK, + contentType: "application/json; charset=utf-8", + body: []string{ + `{"ts":7980386400,"rates":{}}`, + }, + }, { name: "apiFiatRates get EUR rate (exact timestamp)", r: newGetRequest(ts.URL + "/api/v2/tickers?timestamp=1574344800¤cy=eur"),