update test

This commit is contained in:
aler9
2020-05-03 16:05:54 +02:00
parent 7357683460
commit 28603af339

View File

@@ -12,8 +12,8 @@ func TestAuthClientServer(t *testing.T) {
ac, err := NewAuthClient(wwwAuthenticate, "testuser", "testpass")
require.NoError(t, err)
authorization := ac.GenerateHeader("ANNOUNCE", "rtsp://myhost/mypath")
authorization := ac.GenerateHeader(ANNOUNCE, "rtsp://myhost/mypath")
err = as.ValidateHeader(authorization, "ANNOUNCE", "rtsp://myhost/mypath")
err = as.ValidateHeader(authorization, ANNOUNCE, "rtsp://myhost/mypath")
require.NoError(t, err)
}