From 6ec9b54670b6a7b388e840fc3e917004a1e09eb5 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 15 Dec 2020 17:15:00 +0100 Subject: [PATCH] fix: add missing spawner reset code to test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Roberto Abdelkader Martínez Pérez --- internal/server/user/mux/mux_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/server/user/mux/mux_test.go b/internal/server/user/mux/mux_test.go index 75c3d96..1f96507 100644 --- a/internal/server/user/mux/mux_test.go +++ b/internal/server/user/mux/mux_test.go @@ -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{ {