chore(mocks): use common mocks for ivpn and ipvanish

This commit is contained in:
Quentin McGaw
2022-07-04 00:34:48 +00:00
parent a544f6e604
commit dbb71bd695
8 changed files with 45 additions and 108 deletions

View File

@@ -51,7 +51,7 @@ func Test_Updater_GetServers(t *testing.T) {
},
"resolve error": {
warnerBuilder: func(ctrl *gomock.Controller) common.Warner {
warner := NewMockWarner(ctrl)
warner := common.NewMockWarner(ctrl)
warner.EXPECT().Warn("resolve warning")
return warner
},
@@ -87,7 +87,7 @@ func Test_Updater_GetServers(t *testing.T) {
"success": {
minServers: 1,
warnerBuilder: func(ctrl *gomock.Controller) common.Warner {
warner := NewMockWarner(ctrl)
warner := common.NewMockWarner(ctrl)
warner.EXPECT().Warn("resolve warning")
return warner
},