From 20cf2e0371598c15251fb620d69b329de341f0fe Mon Sep 17 00:00:00 2001 From: Archeo Fixer Date: Mon, 7 Sep 2026 22:21:13 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Erros=20em=20opera=C3=A7=C3=B5es=20de=20?= =?UTF-8?q?setup=20devem=20ser=20explicitamente=20verificados=20e=20report?= =?UTF-8?q?ados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router_concurrent_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/router_concurrent_test.go b/router_concurrent_test.go index 182489c96..d83ae1020 100644 --- a/router_concurrent_test.go +++ b/router_concurrent_test.go @@ -95,8 +95,14 @@ func TestConcurrentRouter_ConcurrentReads(t *testing.T) { func TestConcurrentRouter_ConcurrentWrites(t *testing.T) { router := NewConcurrentRouter(NewRouter(RouterConfig{})) - _, _ = router.Add(Route{Method: http.MethodGet, Path: "/initial1", Handler: handlerFunc}) - _, _ = router.Add(Route{Method: http.MethodGet, Path: "/initial2", Handler: handlerFunc}) + _, err := router.Add(Route{Method: http.MethodGet, Path: "/initial1", Handler: handlerFunc}) + if err != nil { + t.Fatal(err) + } + _, err = router.Add(Route{Method: http.MethodGet, Path: "/initial2", Handler: handlerFunc}) + if err != nil { + t.Fatal(err) + } // Launch 5 goroutines, each adds 10 unique routes var wg sync.WaitGroup