Skip to content

Commit

Permalink
fix(tests): disable Ryuk due bug on containers startup
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybarreto committed Jul 15, 2024
1 parent caea6e2 commit cdafe20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions tests/environment/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
5 changes: 0 additions & 5 deletions tests/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit cdafe20

Please sign in to comment.