[#2] Change timeouts for integration tests
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
This commit is contained in:
parent
6b935cde8a
commit
db2411ca16
1 changed files with 6 additions and 3 deletions
|
@ -26,7 +26,10 @@ import (
|
|||
|
||||
func TestIntegration(t *testing.T) {
|
||||
filename := createWallet(t)
|
||||
defer os.Remove(filename)
|
||||
defer func() {
|
||||
err := os.Remove(filename)
|
||||
require.NoError(t, err)
|
||||
}()
|
||||
|
||||
rootCtx := context.Background()
|
||||
aioImage := "truecloudlab/frostfs-aio:"
|
||||
|
@ -135,7 +138,7 @@ func createContainer(ctx context.Context, client *pool.Pool, owner user.ID, cont
|
|||
|
||||
wp := &pool.WaitParams{
|
||||
PollInterval: 5 * time.Second,
|
||||
Timeout: 30 * time.Second,
|
||||
Timeout: 2 * time.Minute,
|
||||
}
|
||||
prm := pool.PrmContainerPut{
|
||||
ClientParams: sdkClient.PrmContainerPut{
|
||||
|
@ -179,7 +182,7 @@ func createWallet(t *testing.T) string {
|
|||
func createDockerContainer(ctx context.Context, t *testing.T, image string) testcontainers.Container {
|
||||
req := testcontainers.ContainerRequest{
|
||||
Image: image,
|
||||
WaitingFor: wait.NewLogStrategy("aio container started").WithStartupTimeout(30 * time.Second),
|
||||
WaitingFor: wait.NewLogStrategy("aio container started").WithStartupTimeout(60 * time.Second),
|
||||
Name: "aio",
|
||||
Hostname: "aio",
|
||||
NetworkMode: "host",
|
||||
|
|
Loading…
Add table
Reference in a new issue