mirror of
				https://github.com/3ybactuk/marketplace-go-service-project.git
				synced 2025-10-31 06:23:44 +03:00 
			
		
		
		
	[hw-5] concurrency, graceful shutdown, concurrent tests
This commit is contained in:
		| @@ -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
	 Никита Шубин
					Никита Шубин