mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-03 16:20:27 +00:00
fix failing test
This commit is contained in:
parent
b09f08926f
commit
57305996eb
1 changed files with 1 additions and 2 deletions
|
@ -13,9 +13,8 @@ func testServer(t *testing.T, r http.Handler) *Server {
|
||||||
svr := NewServer(WithHost("127.0.0.1"), WithPort("19245"))
|
svr := NewServer(WithHost("127.0.0.1"), WithPort("19245"))
|
||||||
|
|
||||||
if r != nil {
|
if r != nil {
|
||||||
svr.mux.Handle("/", r)
|
svr.mux.Mount("/", r)
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
err := svr.Start()
|
err := svr.Start()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue