From 7739e2340161d84db0455ceb9387be5c4e53c1a4 Mon Sep 17 00:00:00 2001 From: Asim Date: Wed, 6 Apr 2016 18:38:33 +0100 Subject: [PATCH] Call it mock TestResponse --- client/mock/mock_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/mock/mock_test.go b/client/mock/mock_test.go index 35d0889c..53baf9f0 100644 --- a/client/mock/mock_test.go +++ b/client/mock/mock_test.go @@ -9,13 +9,13 @@ import ( ) func TestClient(t *testing.T) { - type TestRequest struct { + type TestResponse struct { Param string } response := []MockResponse{ {Method: "Foo.Bar", Response: map[string]interface{}{"foo": "bar"}}, - {Method: "Foo.Struct", Response: &TestRequest{Param: "aparam"}}, + {Method: "Foo.Struct", Response: &TestResponse{Param: "aparam"}}, {Method: "Foo.Fail", Error: errors.InternalServerError("go.mock", "failed")}, }