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

Commit

Permalink
Use endpoint instead of connection in equivalence_test (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
songy23 authored Sep 11, 2019
1 parent 619996f commit b2a517b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions equivalence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,10 @@ func TestEquivalenceStatsVsMetricsUploads(t *testing.T) {
server, addr, doneFn := createFakeServer(t)
defer doneFn()

// Now create a gRPC connection to the agent.
conn, err := grpc.Dial(addr, grpc.WithInsecure())
if err != nil {
t.Fatalf("Failed to make a gRPC connection to the agent: %v", err)
}
defer conn.Close()

// Finally create the OpenCensus stats exporter
exporterOptions := Options{
ProjectID: "equivalence",
MonitoringClientOptions: []option.ClientOption{option.WithGRPCConn(conn)},
MonitoringClientOptions: []option.ClientOption{option.WithEndpoint(addr)},

// Setting this time delay threshold to a very large value
// so that batching is performed deterministically and flushing is
Expand Down

0 comments on commit b2a517b

Please sign in to comment.