jrmccluskey commented on code in PR #26882:
URL: https://github.com/apache/beam/pull/26882#discussion_r1210399327
##########
sdks/go/test/integration/primitives/checkpointing_test.go:
##########
@@ -18,15 +18,11 @@ package primitives
import (
"testing"
- "github.com/apache/beam/sdks/v2/go/pkg/beam"
"github.com/apache/beam/sdks/v2/go/pkg/beam/testing/ptest"
"github.com/apache/beam/sdks/v2/go/test/integration"
)
func TestCheckpointing(t *testing.T) {
integration.CheckFilters(t)
-
- p, s := beam.NewPipelineWithRoot()
- Checkpoints(s)
- ptest.RunAndValidate(t, p)
+ ptest.BuildAndRun(t, Checkpoints)
Review Comment:
I really like the cleanliness of this new pattern
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]