fix: add missing spawner reset code to test
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
@@ -27,6 +27,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/BBVA/kapow/internal/server/model"
|
"github.com/BBVA/kapow/internal/server/model"
|
||||||
|
"github.com/BBVA/kapow/internal/server/user/spawn"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -227,6 +228,7 @@ func TestServeHTTPCallsInnerMuxAfterAcquiringLock(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestUpdateUpdatesMuxWithProvideRouteList(t *testing.T) {
|
func TestUpdateUpdatesMuxWithProvideRouteList(t *testing.T) {
|
||||||
|
spawner = spawn.Spawn
|
||||||
sm := New()
|
sm := New()
|
||||||
rs := []model.Route{
|
rs := []model.Route{
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user