Skip to content

Commit

Permalink
test: does suite-per-test pass?
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Nov 9, 2023
1 parent 6ed54e8 commit e928fa1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions flow/e2e/snowflake/peer_flow_sf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,20 @@ type PeerFlowE2ETestSuiteSF struct {
}

func TestPeerFlowE2ETestSuiteSF(t *testing.T) {
e2e := new(PeerFlowE2ETestSuiteSF)
if e2e.SetupSuite(t) != nil {
return
}
defer e2e.TearDownSuite(t)

t.Run("group", func(t *testing.T) {
e2etype := reflect.TypeOf(e2e)
e2etype := reflect.TypeOf((*PeerFlowE2ETestSuiteSF)(nil))
methodcount := e2etype.NumMethod()
for methodid := 0; methodid < methodcount; methodid += 1 {
method := e2etype.Method(methodid)
if strings.HasPrefix(method.Name, "Test_") {
t.Run(method.Name, func(t *testing.T) {
// t.Parallel()
method.Func.Call([]reflect.Value{reflect.ValueOf(e2e), reflect.ValueOf(t)})
t.Parallel()
e2e := new(PeerFlowE2ETestSuiteSF)
if e2e.SetupSuite(t) == nil {
method.Func.Call([]reflect.Value{reflect.ValueOf(e2e), reflect.ValueOf(t)})
e2e.TearDownSuite(t)
}
})
}
}
Expand Down

0 comments on commit e928fa1

Please sign in to comment.