Skip to content

Commit 12b2be7

Browse files
committed
Check for an error
1 parent cac752f commit 12b2be7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/octoterra_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ func performTest(t *testing.T, testFunc func(t *testing.T, container *octopusCon
206206
}
207207

208208
sqlIp, err := sqlServer.Container.ContainerIP(ctx)
209+
if err != nil {
210+
return err
211+
}
212+
209213
t.Log("SQL Server IP: " + sqlIp)
210214

211215
octopusContainer, err := setupOctopus(ctx, "Server="+sqlIp+",1433;Database=OctopusDeploy;User=sa;Password=Password01!")

0 commit comments

Comments
 (0)