diff --git a/speedtest/server_test.go b/speedtest/server_test.go index aef1d39..d8f9586 100644 --- a/speedtest/server_test.go +++ b/speedtest/server_test.go @@ -151,13 +151,17 @@ func TestCustomServer(t *testing.T) { } func TestFetchServerByID(t *testing.T) { + remoteList, err := FetchServers() + if err != nil { + t.Fatal(err) + } + testData := map[string]bool{ - "45170": true, - "-99999999": false, - "28910": true, - "どうも": false, - "hello": false, - "你好": false, + remoteList[0].ID: true, + "-99999999": false, + "どうも": false, + "hello": false, + "你好": false, } for id, b := range testData {