From 1db9c4969a9b4e4f3a1c7f151cfbd517bbfa7105 Mon Sep 17 00:00:00 2001 From: Lucy Davinhart Date: Fri, 11 May 2018 21:28:03 +0100 Subject: [PATCH] Fix syntax errors causing api package to fail tests (#4555) --- api/client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/client_test.go b/api/client_test.go index 4e0060899a..970354bab1 100644 --- a/api/client_test.go +++ b/api/client_test.go @@ -200,7 +200,7 @@ func TestParsingRateAndBurst(t *testing.T) { var ( correctFormat = "400:400" observedRate, observedBurst, err = parseRateLimit(correctFormat) - expectedRate, expectedBurst = float(400), 400 + expectedRate, expectedBurst = float64(400), 400 ) if err != nil { t.Error(err) @@ -217,7 +217,7 @@ func TestParsingRateOnly(t *testing.T) { var ( correctFormat = "400" observedRate, observedBurst, err = parseRateLimit(correctFormat) - expectedRate, expectedBurst = float(400), 400 + expectedRate, expectedBurst = float64(400), 400 ) if err != nil { t.Error(err) @@ -232,7 +232,7 @@ func TestParsingRateOnly(t *testing.T) { func TestParsingErrorCase(t *testing.T) { var incorrectFormat = "foobar" - var _, _, err = parseRateLimit(correctFormat) + var _, _, err = parseRateLimit(incorrectFormat) if err == nil { t.Error("Expected error, found no error") }