Skip to content

Commit

Permalink
[prism] move test functions and tests to internal_test (#27714)
Browse files Browse the repository at this point in the history
Co-authored-by: lostluck <[email protected]>
  • Loading branch information
lostluck and lostluck authored Jul 27, 2023
1 parent c6296ba commit 8d4b0bd
Show file tree
Hide file tree
Showing 5 changed files with 336 additions and 367 deletions.
5 changes: 3 additions & 2 deletions sdks/go/pkg/beam/runners/prism/internal/execute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package internal_test

import (
"context"
Expand All @@ -27,6 +27,7 @@ import (
"github.com/apache/beam/sdks/v2/go/pkg/beam"
"github.com/apache/beam/sdks/v2/go/pkg/beam/core/metrics"
"github.com/apache/beam/sdks/v2/go/pkg/beam/options/jobopts"
"github.com/apache/beam/sdks/v2/go/pkg/beam/runners/prism/internal"
"github.com/apache/beam/sdks/v2/go/pkg/beam/runners/prism/internal/jobservices"
"github.com/apache/beam/sdks/v2/go/pkg/beam/runners/universal"
"github.com/apache/beam/sdks/v2/go/pkg/beam/testing/passert"
Expand All @@ -38,7 +39,7 @@ import (
func initRunner(t *testing.T) {
t.Helper()
if *jobopts.Endpoint == "" {
s := jobservices.NewServer(0, RunPipeline)
s := jobservices.NewServer(0, internal.RunPipeline)
*jobopts.Endpoint = s.Endpoint()
go s.Serve()
t.Cleanup(func() {
Expand Down
2 changes: 1 addition & 1 deletion sdks/go/pkg/beam/runners/prism/internal/separate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package internal
package internal_test

import (
"context"
Expand Down
362 changes: 0 additions & 362 deletions sdks/go/pkg/beam/runners/prism/internal/testdofns.go

This file was deleted.

Loading

0 comments on commit 8d4b0bd

Please sign in to comment.