Skip to content

Commit

Permalink
Update Elasticsearch mock client
Browse files Browse the repository at this point in the history
  • Loading branch information
bittersweet committed Nov 13, 2015
1 parent 7938f9e commit e97896e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ func (mec MockElasticsearchClient) EventCount() (int, error) {
return 1, nil
}

func (mec MockElasticsearchClient) Persist(a string, b string, c string, d map[string]interface{}) error {
return nil
}

func (mec MockElasticsearchClient) GetEvent(a string, b string) ([]byte, error) {
return []byte(""), nil
}

func TestCountStatus(t *testing.T) {
mockES := MockElasticsearchClient{}
countHandle := handleCount(mockES)
Expand Down

0 comments on commit e97896e

Please sign in to comment.