Touched up snowflake client tests

There were a few tests that needed refreshing since the introduction of
the pion library. Also added a few tests for the ICE server parsing
function in the client.
This commit is contained in:
Cecylia Bocovich 2019-11-26 15:04:48 -05:00
parent dabdd847ce
commit 0f99c5ab12
3 changed files with 90 additions and 8 deletions

View file

@ -77,6 +77,7 @@ func parseIceServers(s string) []webrtc.ICEServer {
urls := strings.Split(s, ",")
log.Printf("Using ICE Servers:")
for _, url := range urls {
url = strings.TrimSpace(url)
log.Printf("url: %s", url)
servers = append(servers, webrtc.ICEServer{
URLs: []string{url},