We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b7776 commit 1018e17Copy full SHA for 1018e17
framework/components/blockchain/ton.go
@@ -5,6 +5,7 @@ import (
5
"fmt"
6
"os"
7
"os/exec"
8
+ "strings"
9
"time"
10
11
"github.com/testcontainers/testcontainers-go"
@@ -114,7 +115,10 @@ func newTon(in *Input) (*Output, error) {
114
115
output, err := cmd.CombinedOutput()
116
framework.L.Info().Str("output", string(output)).Msg("TON Docker network created")
117
if err != nil {
- return nil, fmt.Errorf("failed to create docker network: %v", err)
118
+ if !strings.Contains(string(output), "already exists") {
119
+ return nil, fmt.Errorf("failed to create docker network: %v", err)
120
+ }
121
+ framework.L.Info().Msgf("Network %q already exists, ignoring", networkName)
122
}
123
124
tonServices := []containerTemplate{
0 commit comments