Removing tests from patroni.go
This commit is contained in:
parent
91631d5d60
commit
6893d0f874
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue