[hw-5] concurrency, graceful shutdown, concurrent tests

This commit is contained in:
Никита Шубин
2025-07-06 20:52:27 +00:00
parent dbf8aaedcf
commit 84201fe495
23 changed files with 742 additions and 157 deletions

View File

@@ -17,6 +17,7 @@ import (
"github.com/ozontech/allure-go/pkg/framework/suite"
"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/wait"
"go.uber.org/goleak"
"google.golang.org/grpc"
"route256/cart/internal/app"
@@ -64,6 +65,8 @@ type CartHandlerSuite struct {
}
func TestCartHandlerSuite(t *testing.T) {
defer goleak.VerifyNone(t)
suite.RunSuite(t, new(CartHandlerSuite))
}
@@ -111,6 +114,9 @@ func (s *CartHandlerSuite) BeforeAll(t provider.T) {
*http.DefaultClient,
testToken,
productURL,
10,
10,
10,
)
lomsClient := pbLoms.NewLOMSClient(s.lomsConn)