Skip to content

Commit

Permalink
tests: use helpers instead of worker name
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Apr 5, 2024
1 parent 4d012cf commit bcda1db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,8 @@ COPY --from=build /token /
}

func testBuildDefaultLoad(t *testing.T, sb integration.Sandbox) {
if sb.Name() != "docker" {
t.Skip("skipping test for non-docker workers")
if !isDockerWorker(sb) {
t.Skip("only testing with docker workers")
}

tag := "buildx/build:" + identity.NewID()
Expand Down
4 changes: 2 additions & 2 deletions tests/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func testCreateRestartAlways(t *testing.T, sb integration.Sandbox) {
}

func testCreateRemoteContainer(t *testing.T, sb integration.Sandbox) {
if sb.Name() != "docker" {
t.Skip("skipping test for non-docker workers")
if !isDockerWorker(sb) {
t.Skip("only testing with docker workers")
}

ctnBuilderName := "ctn-builder-" + identity.NewID()
Expand Down

0 comments on commit bcda1db

Please sign in to comment.