Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Rename plugin/ocgrpc/testdata to plugin/internal/testpb
Browse files Browse the repository at this point in the history
Fixes: #549
  • Loading branch information
Ramon Nogueira committed Mar 12, 2018
1 parent 0ccdb21 commit d1b35a0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package testdata;
package testpb;

message FooRequest {
bool fail = 1;
Expand Down
10 changes: 5 additions & 5 deletions plugin/ocgrpc/trace_common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

testpb "go.opencensus.io/plugin/ocgrpc/testdata"
"go.opencensus.io/plugin/ocgrpc/internal/testpb"
"go.opencensus.io/trace"
"golang.org/x/net/context"
"google.golang.org/grpc"
Expand Down Expand Up @@ -124,7 +124,7 @@ func TestStreaming(t *testing.T) {
s1 := <-te.ch
s2 := <-te.ch

checkSpanData(t, s1, s2, ".testdata.Foo.Multiple", true)
checkSpanData(t, s1, s2, ".testpb.Foo.Multiple", true)

select {
case <-te.ch:
Expand Down Expand Up @@ -167,7 +167,7 @@ func TestStreamingFail(t *testing.T) {
s1 := <-te.ch
s2 := <-te.ch

checkSpanData(t, s1, s2, ".testdata.Foo.Multiple", false)
checkSpanData(t, s1, s2, ".testpb.Foo.Multiple", false)
cleanup()

select {
Expand Down Expand Up @@ -196,7 +196,7 @@ func TestSingle(t *testing.T) {
s1 := <-te.ch
s2 := <-te.ch

checkSpanData(t, s1, s2, ".testdata.Foo.Single", true)
checkSpanData(t, s1, s2, ".testpb.Foo.Single", true)
cleanup()

select {
Expand Down Expand Up @@ -225,7 +225,7 @@ func TestSingleFail(t *testing.T) {
s1 := <-te.ch
s2 := <-te.ch

checkSpanData(t, s1, s2, ".testdata.Foo.Single", false)
checkSpanData(t, s1, s2, ".testpb.Foo.Single", false)
cleanup()

select {
Expand Down

0 comments on commit d1b35a0

Please sign in to comment.