Skip to content

Commit

Permalink
Allow skipping optional tests for optional methods in plugins (#4287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaddoll committed Jun 28, 2021
1 parent b25da7e commit 4305fc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ func (s *HistoryV2PersistenceSuite) TestGenUUIDs() {

// TestScanAllTrees test
func (s *HistoryV2PersistenceSuite) TestScanAllTrees() {
if os.Getenv("SKIP_SCAN_HISTORY") != "" {
s.T().Skipf("GetAllHistoryTreeBranches not supported in %v", s.TaskMgr.GetName())
}
ctx, cancel := context.WithTimeout(context.Background(), testContextTimeout)
defer cancel()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ func (s *MatchingPersistenceSuite) TestListWithMultipleTaskList() {
}

func (s *MatchingPersistenceSuite) TestGetOrphanTasks() {
if os.Getenv("SKIP_GET_ORPHAN_TASKS") != "" {
s.T().Skipf("GetOrphanTasks not supported in %v", s.TaskMgr.GetName())
}
if s.TaskMgr.GetName() == "cassandra" {
// GetOrphanTasks API is currently not supported in cassandra"
return
Expand Down

0 comments on commit 4305fc0

Please sign in to comment.