mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Update tests for new continent map.
This commit is contained in:
parent
99bb30af20
commit
38c836011b
2 changed files with 5 additions and 5 deletions
|
|
@ -104,7 +104,7 @@ func TestGeoLookupContinent(t *testing.T) {
|
|||
tests := map[string][]string{
|
||||
"AU": {"OC"},
|
||||
"DE": {"EU"},
|
||||
"RU": {"EU", "AS"},
|
||||
"RU": {"EU"},
|
||||
"": nil,
|
||||
"INVALID ": nil,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,10 +67,10 @@ func Test_sortConnectionsForCountry(t *testing.T) {
|
|||
{conn_de, conn_jp, conn_at},
|
||||
{conn_jp, conn_de, conn_at},
|
||||
},
|
||||
// Partial continent match
|
||||
// Continent match
|
||||
"RU": {
|
||||
{conn_us, conn_de, conn_jp, conn_at},
|
||||
{conn_de, conn_jp, conn_at, conn_us},
|
||||
{conn_de, conn_at, conn_us, conn_jp},
|
||||
},
|
||||
// No match
|
||||
"AU": {
|
||||
|
|
@ -125,10 +125,10 @@ func Test_sortConnectionsForCountryWithOverride(t *testing.T) {
|
|||
{conn_de, conn_jp, conn_at},
|
||||
{conn_jp, conn_de, conn_at},
|
||||
},
|
||||
// Partial continent match
|
||||
// Continent match
|
||||
"RU": {
|
||||
{conn_us, conn_de, conn_jp, conn_at},
|
||||
{conn_de, conn_jp, conn_at, conn_us},
|
||||
{conn_de, conn_at, conn_us, conn_jp},
|
||||
},
|
||||
// No match
|
||||
"AR": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue