Skip to content

Commit

Permalink
Add IPv6 addresses to some tests
Browse files Browse the repository at this point in the history
This only checks they are being parsed with no error, it doesn't
actually do anything useful with them.
  • Loading branch information
jech authored and Sean-Der committed Jan 29, 2021
1 parent bafb7f5 commit f4b3d98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iceserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ func TestICEServer_validate(t *testing.T) {
Credential: "placeholder",
CredentialType: ICECredentialTypePassword,
}, true},
{ICEServer{
URLs: []string{"turn:[2001:db8:1234:5678::1]?transport=udp"},
Username: "unittest",
Credential: "placeholder",
CredentialType: ICECredentialTypePassword,
}, true},
{ICEServer{
URLs: []string{"turn:192.158.29.39?transport=udp"},
Username: "unittest",
Expand Down
1 change: 1 addition & 0 deletions peerconnection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ a=msid-semantic: WMS
m=application 47299 DTLS/SCTP 5000
c=IN IP4 192.168.20.129
a=candidate:1966762134 1 udp 2122260223 192.168.20.129 47299 typ host generation 0
a=candidate:1966762134 1 udp 2122262783 2001:db8::1 47199 typ host generation 0
a=candidate:211962667 1 udp 2122194687 10.0.3.1 40864 typ host generation 0
a=candidate:1002017894 1 tcp 1518280447 192.168.20.129 0 typ host tcptype active generation 0
a=candidate:1109506011 1 tcp 1518214911 10.0.3.1 0 typ host tcptype active generation 0
Expand Down

0 comments on commit f4b3d98

Please sign in to comment.