mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2026-11-04 00:02: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
@@ -8,6 +8,7 @@ import (
|
||||
"github.com/gojuno/minimock/v3"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/goleak"
|
||||
|
||||
"route256/loms/internal/domain/entity"
|
||||
"route256/loms/internal/domain/model"
|
||||
@@ -39,6 +40,10 @@ func (t *mockTxManager) ReadWithRepeatableRead(ctx context.Context, fn func(ctx
|
||||
return fn(ctx)
|
||||
}
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
goleak.VerifyTestMain(m)
|
||||
}
|
||||
|
||||
func TestLomsService_OrderCreate(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in new issue
Block a user