Skip to content

Commit

Permalink
skip htap tests on jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-akolodziejczyk committed Mar 20, 2024
1 parent 6b7febf commit 9adde46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions htap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ func TestQueryContextCacheDisabled(t *testing.T) {
}

func TestHybridTablesE2E(t *testing.T) {
skipOnJenkins(t)
if runningOnGithubAction() && !runningOnAWS() {
t.Skip("HTAP is enabled only on AWS")
}
Expand Down
6 changes: 6 additions & 0 deletions util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,9 @@ func performContainsTestcase[S comparable](tc tcContains[S], t *testing.T) {
t.Errorf("contains failed; arr: %v, e: %v, should be %v but was %v", tc.arr, tc.e, tc.expected, result)
}
}

func skipOnJenkins(t *testing.T) {
if os.Getenv("JENKINS_HOME") != "" {
t.Skip("Skipping tests on Jenkins")
}
}

0 comments on commit 9adde46

Please sign in to comment.