mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2026-11-03 15:52:52 +03:00
[hw-5] concurrency, graceful shutdown, concurrent tests
This commit is contained in:
1 parent
dbf8aaedcf
commit
84201fe495
23 files changed
+742
-157
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user