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

Add tests for gRPC span duration and Stackdriver gRPC exporting #596

Merged
merged 1 commit into from
Mar 19, 2018

Conversation

semistrict
Copy link
Contributor

No description provided.

@@ -110,184 +44,3 @@ func TestClientHandler_traceTagRPC(t *testing.T) {
t.Fatal("no metadata")
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved all this to trace_test.go

@semistrict semistrict changed the title Add tests for gRPC span duration an Stackdriver gRPC exporting Add tests for gRPC span duration and Stackdriver gRPC exporting Mar 19, 2018
@@ -81,3 +82,28 @@ func TestExport(t *testing.T) {
exporter.Flush()
exporter.Flush()
}

func TestGrpc(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestGRPC

}
}

func NewTestClient(l interface{ Fatal(args ...interface{}) }) (client FooClient, cleanup func()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pass t *testing.T instead of l. And you can mark this function as a helper.

@semistrict semistrict merged commit e3a7a61 into census-instrumentation:master Mar 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants