You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lo...@apache.org on 2020/04/08 05:35:15 UTC
[beam] branch lostluck-protosuffix updated: Update logging_test.go
This is an automated email from the ASF dual-hosted git repository.
lostluck pushed a commit to branch lostluck-protosuffix
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/lostluck-protosuffix by this push:
new 1378b31 Update logging_test.go
1378b31 is described below
commit 1378b3168773b54fd2123bf0fdbab69b34d62e09
Author: Robert Burke <lo...@users.noreply.github.com>
AuthorDate: Tue Apr 7 22:35:03 2020 -0700
Update logging_test.go
---
sdks/go/pkg/beam/core/runtime/harness/logging_test.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sdks/go/pkg/beam/core/runtime/harness/logging_test.go b/sdks/go/pkg/beam/core/runtime/harness/logging_test.go
index 606b3c7..8817fe6 100644
--- a/sdks/go/pkg/beam/core/runtime/harness/logging_test.go
+++ b/sdks/go/pkg/beam/core/runtime/harness/logging_test.go
@@ -21,11 +21,11 @@ import (
"testing"
"github.com/apache/beam/sdks/go/pkg/beam/log"
- pb "github.com/apache/beam/sdks/go/pkg/beam/model/fnexecution_v1"
+ fnpb "github.com/apache/beam/sdks/go/pkg/beam/model/fnexecution_v1"
)
func TestLogger(t *testing.T) {
- ch := make(chan *pb.LogEntry, 1)
+ ch := make(chan *fnpb.LogEntry, 1)
l := logger{out: ch}
instID := "INST"
@@ -45,7 +45,7 @@ func TestLogger(t *testing.T) {
if got, want := e.GetLogLocation(), "logging_test.go:34"; !strings.HasSuffix(got, want) {
t.Errorf("incorrect LogLocation: got %v, want suffix %v", got, want)
}
- if got, want := e.GetSeverity(), pb.LogEntry_Severity_INFO; got != want {
+ if got, want := e.GetSeverity(), fnpb.LogEntry_Severity_INFO; got != want {
t.Errorf("incorrect Severity: got %v, want %v", got, want)
}
}