chore(updater): rename GetServers to FetchServers
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
"golang.org/x/text/language"
|
||||
)
|
||||
|
||||
func (u *Updater) GetServers(ctx context.Context, minServers int) (
|
||||
func (u *Updater) FetchServers(ctx context.Context, minServers int) (
|
||||
servers []models.Server, err error) {
|
||||
const url = "https://www.ipvanish.com/software/configs/configs.zip"
|
||||
contents, err := u.unzipper.FetchAndExtract(ctx, url)
|
||||
|
||||
@@ -183,7 +183,7 @@ func Test_Updater_GetServers(t *testing.T) {
|
||||
|
||||
updater := New(unzipper, presolver, warner)
|
||||
|
||||
servers, err := updater.GetServers(ctx, testCase.minServers)
|
||||
servers, err := updater.FetchServers(ctx, testCase.minServers)
|
||||
|
||||
assert.Equal(t, testCase.servers, servers)
|
||||
if testCase.err != nil {
|
||||
|
||||
Reference in New Issue
Block a user