mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 12:21:22 +02:00
Removing tests from patroni.go
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user