Skip to content

Commit

Permalink
add handler to test
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoYL123 committed Mar 16, 2020
1 parent 7369815 commit 12d2d97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/resource/v1/history_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ func TestHistoryResource_GetPollingData(t *testing.T) {
t.Run("list kv by service label, to create a polling data", func(t *testing.T) {
r, _ := http.NewRequest("GET", "/v1/test/kie/kv", nil)
noopH := &handler2.NoopAuthHandler{}
chain, _ := handler.CreateChain(common.Provider, "testchain1", noopH.Name())
noopH2 := &handler2.TrackHandler{}
chain, _ := handler.CreateChain(common.Provider, "testchain1", noopH.Name(), noopH2.Name())
r.Header.Set("Content-Type", "application/json")
r.Header.Set("X-Session-Id", "test")
kvr := &v1.KVResource{}
Expand Down

0 comments on commit 12d2d97

Please sign in to comment.