Removing tests from patroni.go

This commit is contained in:
Jan Mußler 2021-02-20 00:22:11 +01:00
parent 91631d5d60
commit 6893d0f874
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,5 @@
package patroni
//go:generate mockgen -package mocks -destination=$PWD/mocks/$GOFILE -source=$GOFILE -build_flags=-mod=vendor
import (
"bytes"
"encoding/json"

View File

@ -94,4 +94,12 @@ func TestPatroniAPI(t *testing.T) {
mockClient := mocks.NewMockHTTPClient(ctrl)
mockClient.EXPECT().Get(gomock.Any()).Return(&response)
p := New(nil, mockClient)
_, err := p.GetMemberData(nil)
if err != nil {
t.Errorf("Could not read Patroni data")
}
}