From 081befdda85c627121af9a04f94e05dc81dc0bb1 Mon Sep 17 00:00:00 2001 From: GuoYL Date: Sat, 29 Feb 2020 16:26:08 +0800 Subject: [PATCH] #79 modify --- server/resource/v1/history_resource_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/resource/v1/history_resource_test.go b/server/resource/v1/history_resource_test.go index 91e1f9c5..ff48ee33 100644 --- a/server/resource/v1/history_resource_test.go +++ b/server/resource/v1/history_resource_test.go @@ -117,8 +117,8 @@ func TestHistoryResource_GetPollingData(t *testing.T) { noopH := &handler2.NoopAuthHandler{} chain, _ := handler.CreateChain(common.Provider, "testchain1", noopH.Name()) r.Header.Set("Content-Type", "application/json") - kvr := &v1.KVResource{} - c, err := restfultest.New(kvr, chain) + revision := &v1.HistoryResource{} + c, err := restfultest.New(revision, chain) assert.NoError(t, err) resp := httptest.NewRecorder() c.ServeHTTP(resp, r)