Skip to content

Commit

Permalink
Skip tests that require pulling container images (#209)
Browse files Browse the repository at this point in the history
* Skip tests that require pulling container images

* Update skip message and remove comment
  • Loading branch information
jaredoconnell committed Sep 13, 2024
1 parent 213a0df commit 1a163a3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ output: []`),
}

func TestE2E(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode due to container pulling")
}

content := map[string][]byte{
"workflow.yaml": []byte(`version: v0.2.0
input:
Expand Down Expand Up @@ -184,6 +188,10 @@ output:
}

func TestE2EMultipleOutputs(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode due to container pulling")
}

content := map[string][]byte{
"workflow.yaml": []byte(`version: v0.2.0
input:
Expand Down Expand Up @@ -220,6 +228,10 @@ outputs:
}

func TestE2EWorkflowDefaultInput(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode due to container pulling")
}

content := map[string][]byte{
"workflow.yaml": []byte(`version: v0.2.0
input:
Expand Down Expand Up @@ -262,6 +274,10 @@ outputs:
// referenced in the main workflow is incorporated into the
// workflow's execution.
func Test_CacheSubworkflows(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode due to container pulling")
}

fileCache, err := loadfile.NewFileCacheUsingContext(
"fixtures/test-subworkflow",
map[string]string{
Expand Down

0 comments on commit 1a163a3

Please sign in to comment.