From cdafe20de37084efc5de55d4a601c9dbf63e9033 Mon Sep 17 00:00:00 2001 From: Henry Barreto Date: Mon, 15 Jul 2024 10:05:22 -0300 Subject: [PATCH] fix(tests): disable Ryuk due bug on containers startup --- tests/environment/configurator.go | 5 +++++ tests/main_test.go | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/environment/configurator.go b/tests/environment/configurator.go index 1702d52b8b1..f56e5f4815d 100644 --- a/tests/environment/configurator.go +++ b/tests/environment/configurator.go @@ -116,6 +116,11 @@ func (dcc *DockerComposeConfigurator) Up(ctx context.Context) *DockerCompose { } } + // INFO: Due to issue related on testcontainers-go, we are disabling Ryuk it as a temporary solution. + // + // https://github.com/testcontainers/testcontainers-go/issues/2445 + dcc.envs["TESTCONTAINERS_RYUK_DISABLED"] = "true" + services := []Service{ServiceGateway, ServiceAPI, ServiceSSH, ServiceUI} // TODO: Perhaps we could devise a strategy to wait for specific services instead // of blocking until all are running|healthy? diff --git a/tests/main_test.go b/tests/main_test.go index 5018eec884e..791f9436903 100644 --- a/tests/main_test.go +++ b/tests/main_test.go @@ -80,11 +80,6 @@ func keygen() error { } func TestMain(m *testing.M) { - // FIXME: Due to issue related on testcontainers-go, we are disabling Ryuk it as a temporary solution. - // - // https://github.com/testcontainers/testcontainers-go/issues/2445 - os.Setenv("TESTCONTAINERS_RYUK_DISABLED", "true") - if err := keygen(); err != nil { log.WithError(err).Error("failed to generate the ShellHub keys")