mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
return an error in case the random number generator fails
This commit is contained in:
@@ -1045,7 +1045,8 @@ func TestServerSessionTeardown(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestServerAuth(t *testing.T) {
|
||||
nonce := auth.GenerateNonce()
|
||||
nonce, err := auth.GenerateNonce()
|
||||
require.NoError(t, err)
|
||||
|
||||
s := &Server{
|
||||
Handler: &testServerHandler{
|
||||
@@ -1068,7 +1069,7 @@ func TestServerAuth(t *testing.T) {
|
||||
RTSPAddress: "localhost:8554",
|
||||
}
|
||||
|
||||
err := s.Start()
|
||||
err = s.Start()
|
||||
require.NoError(t, err)
|
||||
defer s.Close()
|
||||
|
||||
|
Reference in New Issue
Block a user