Skip to content

Commit

Permalink
test: skip nil test
Browse files Browse the repository at this point in the history
  • Loading branch information
123liuziming committed Aug 8, 2024
1 parent 98c2dfe commit b17cf0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import (

func TestPlugins(t *testing.T) {
for _, c := range TestCases {
if c == nil {
t.Skip()
}
if c.IsMuzzleCheck || c.IsLatestDepthCheck {
continue
}
Expand All @@ -18,6 +21,9 @@ func TestPlugins(t *testing.T) {

func TestMuzzle(t *testing.T) {
for _, c := range TestCases {
if c == nil {
t.Skip()
}
if !c.IsMuzzleCheck {
continue
}
Expand All @@ -29,6 +35,9 @@ func TestMuzzle(t *testing.T) {

func TestLatest(t *testing.T) {
for _, c := range TestCases {
if c == nil {
t.Skip()
}
if !c.IsLatestDepthCheck {
continue
}
Expand Down

0 comments on commit b17cf0a

Please sign in to comment.