mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
chore: increase sysctl values for the MSSQL container
This commit is contained in:
@@ -7,7 +7,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/docker/docker/api/types/container"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/testcontainers/testcontainers-go"
|
||||
"github.com/testcontainers/testcontainers-go/modules/mssql"
|
||||
)
|
||||
|
||||
@@ -34,6 +36,15 @@ func newTestStore(t testing.TB) (*Storage, error) {
|
||||
c, err := mssql.Run(ctx, img,
|
||||
mssql.WithPassword(mssqlPass),
|
||||
mssql.WithAcceptEULA(),
|
||||
testcontainers.CustomizeRequest(testcontainers.GenericContainerRequest{
|
||||
ContainerRequest: testcontainers.ContainerRequest{
|
||||
HostConfigModifier: func(hc *container.HostConfig) {
|
||||
hc.Sysctls = map[string]string{
|
||||
"fs.aio-max-nr": "1048576",
|
||||
}
|
||||
},
|
||||
},
|
||||
}),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user