Skip to content

Commit e97a77f

Browse files
author
Jesus Carrillo
committed
remove linode api testing from node_server test TestNodeGetInfo
1 parent 33ceca0 commit e97a77f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

internal/driver/nodeserver_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -755,13 +755,6 @@ func TestNodeGetInfo(t *testing.T) {
755755
},
756756
},
757757
},
758-
expectLinodeClientCalls: func(m *mocks.MockLinodeClient) {
759-
m.EXPECT().ListInstanceDisks(gomock.Any(), gomock.Any(), gomock.Any()).Return([]linodego.InstanceDisk{
760-
{
761-
ID: 1,
762-
},
763-
}, nil)
764-
},
765758
expectedError: nil,
766759
},
767760
}
@@ -771,9 +764,6 @@ func TestNodeGetInfo(t *testing.T) {
771764
ctrl := gomock.NewController(t)
772765
defer ctrl.Finish()
773766
mockClient := mocks.NewMockLinodeClient(ctrl)
774-
if tt.expectLinodeClientCalls != nil {
775-
tt.expectLinodeClientCalls(mockClient)
776-
}
777767
ns := &NodeServer{
778768
driver: &LinodeDriver{},
779769
client: mockClient,

0 commit comments

Comments
 (0)