mirror of
https://github.com/aler9/gortsplib
synced 2025-10-23 07:09:34 +08:00
client: apply TCP timeout correctly (https://github.com/aler9/rtsp-simple-server/issues/335)
This commit is contained in:
@@ -1435,7 +1435,7 @@ func TestClientReadErrorTimeout(t *testing.T) {
|
||||
require.Equal(t, "UDP timeout", err.Error())
|
||||
|
||||
case "tcp":
|
||||
require.True(t, strings.HasSuffix(err.Error(), "i/o timeout"))
|
||||
require.Equal(t, "TCP timeout", err.Error())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user