mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 03:25:58 +08:00
Fix the zero value of ICECredentialType
Ensure that the zero value of ICECredentialType is password.
This commit is contained in:

committed by
Sean DuBois

parent
37a145a51f
commit
b4579949e1
@@ -112,3 +112,12 @@ func TestICEServer_validate(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestICEServerZeroValue(t *testing.T) {
|
||||
server := ICEServer{
|
||||
URLs: []string{"turn:galene.org:1195"},
|
||||
Username: "galene",
|
||||
Credential: "secret",
|
||||
}
|
||||
assert.Equal(t, server.CredentialType, ICECredentialTypePassword)
|
||||
}
|
||||
|
Reference in New Issue
Block a user