forked from External/mediamtx
add JWT authentication tests (#3272)
This commit is contained in:
parent
9d82d4e783
commit
b84f0b90d0
4 changed files with 149 additions and 88 deletions
|
|
@ -79,10 +79,11 @@ func TestSource(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
})
|
||||
|
||||
s := &http.Server{Handler: router}
|
||||
|
||||
ln, err := net.Listen("tcp", "localhost:5780")
|
||||
require.NoError(t, err)
|
||||
|
||||
s := &http.Server{Handler: router}
|
||||
go s.Serve(ln)
|
||||
defer s.Shutdown(context.Background())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue