Skip to content

Commit

Permalink
fix: TestFetchServerByID broken
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari authored Feb 11, 2024
1 parent d89d306 commit b606404
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions speedtest/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b606404

Please sign in to comment.