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:
pancho horrillo
2020-12-15 17:15:00 +01:00
parent 0dd9cf07ab
commit 6ec9b54670
+2
View File
@@ -27,6 +27,7 @@ import (
"time"
"github.com/BBVA/kapow/internal/server/model"
"github.com/BBVA/kapow/internal/server/user/spawn"
"github.com/gorilla/mux"
)
@@ -227,6 +228,7 @@ func TestServeHTTPCallsInnerMuxAfterAcquiringLock(t *testing.T) {
}
func TestUpdateUpdatesMuxWithProvideRouteList(t *testing.T) {
spawner = spawn.Spawn
sm := New()
rs := []model.Route{
{