File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func TestActionRunDocker(t *testing.T) {
4848func TestActionRunDockerNonzeroExitCode (t * testing.T ) {
4949 cr := Runtime (t )
5050
51- expected := rand .IntN (254 ) + 1
51+ expected := rand .IntN (254 ) + 2
5252 uses := Uses (t , & githubactions.Metadata {
5353 Name : t .Name (),
5454 Runs : & githubactions.MetadataRuns {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func TestCloudBuildRunScript(t *testing.T) {
4444func TestCloudBuildRunNonzeroExitCode (t * testing.T ) {
4545 cr := Runtime (t )
4646
47- expected := rand .IntN (254 ) + 1
47+ expected := rand .IntN (254 ) + 2
4848 step := & forge.CloudBuild {
4949 Step : cloudbuild.Step {
5050 Name : "public.ecr.aws/docker/library/alpine" ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ require (
1818 github.com/spf13/cobra v1.10.2
1919 github.com/stretchr/testify v1.11.1
2020 golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93
21+ golang.org/x/sync v0.19.0
2122 golang.org/x/text v0.32.0
2223 k8s.io/apimachinery v0.35.0
2324 k8s.io/cli-runtime v0.35.0
@@ -90,7 +91,6 @@ require (
9091 go.yaml.in/yaml/v3 v3.0.4 // indirect
9192 golang.org/x/crypto v0.46.0 // indirect
9293 golang.org/x/net v0.48.0 // indirect
93- golang.org/x/sync v0.19.0 // indirect
9494 golang.org/x/sys v0.40.0 // indirect
9595 golang.org/x/time v0.14.0 // indirect
9696 google.golang.org/genproto/googleapis/api v0.0.0-20251222181119-0a764e51fe1b // indirect
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func TestPipe(t *testing.T) {
3535func TestPipeFromNonzeroExitCode (t * testing.T ) {
3636 cr := Runtime (t )
3737
38- expected := rand .IntN (254 ) + 1
38+ expected := rand .IntN (254 ) + 2
3939 pipe := & forge.Pipe {
4040 From : & forge.Pure {
4141 Image : "public.ecr.aws/docker/library/alpine" ,
@@ -58,7 +58,7 @@ func TestPipeFromNonzeroExitCode(t *testing.T) {
5858func TestPipeToNonzeroExitCode (t * testing.T ) {
5959 cr := Runtime (t )
6060
61- expected := rand .IntN (254 ) + 1
61+ expected := rand .IntN (254 ) + 2
6262 pipe := & forge.Pipe {
6363 From : & forge.Pure {
6464 Image : "public.ecr.aws/docker/library/alpine" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ func TestPure(t *testing.T) {
3030func TestPureNonzeroExitCode (t * testing.T ) {
3131 cr := Runtime (t )
3232
33- expected := rand .IntN (254 ) + 1
33+ expected := rand .IntN (254 ) + 2
3434 pure := & forge.Pure {
3535 Image : "public.ecr.aws/docker/library/alpine" ,
3636 Entrypoint : []string {"sh" , "-c" },
Original file line number Diff line number Diff line change 44 "context"
55 "io"
66 "path/filepath"
7+ // "strings"
78 "time"
89
910 "github.com/docker/docker/api/types/container"
You can’t perform that action at this time.
0 commit comments