Skip to content

Commit

Permalink
atc/testing: move setup only exit to after conversions are setup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmdm committed Jan 7, 2025
1 parent 2f0b573 commit 9c9eb1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/atc/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,6 @@ func TestAirTrafficController(t *testing.T) {
"failed to assert expected replica count for c4ts backend deployment",
)

if setupOnly, _ := strconv.ParseBool(os.Getenv("SETUP_ONLY")); setupOnly {
return
}

require.NoError(t, commander.Mayday(ctx, "c4ts", "default"))

testutils.EventuallyNoErrorf(
Expand Down Expand Up @@ -407,6 +403,10 @@ func TestAirTrafficController(t *testing.T) {
}),
)

if setupOnly, _ := strconv.ParseBool(os.Getenv("SETUP_ONLY")); setupOnly {
return
}

rawBackend, err := client.Dynamic.
Resource(schema.GroupVersionResource{Group: "examples.com", Version: "v2", Resource: "backends"}).
Namespace("default").
Expand Down

0 comments on commit 9c9eb1a

Please sign in to comment.