Skip to content

Commit

Permalink
fix shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Scarr committed Nov 2, 2018
1 parent 8bbb5eb commit 7286e24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gqlopencensus/tracer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestTracer(t *testing.T) {
ctx, _ = trace.StartSpan(ctx, "test", trace.WithSampler(spec.Sampler))
ctx = tracer.StartOperationExecution(ctx)
{
ctx := tracer.StartFieldExecution(ctx, graphql.CollectedField{
ctx2 := tracer.StartFieldExecution(ctx, graphql.CollectedField{
Field: &ast.Field{
Name: "F",
Alias: "F",
Expand All @@ -129,9 +129,9 @@ func TestTracer(t *testing.T) {
},
},
})
ctx = tracer.StartFieldResolverExecution(ctx, &graphql.ResolverContext{})
ctx = tracer.StartFieldChildExecution(ctx)
tracer.EndFieldExecution(ctx)
ctx2 = tracer.StartFieldResolverExecution(ctx2, &graphql.ResolverContext{})
ctx2 = tracer.StartFieldChildExecution(ctx2)
tracer.EndFieldExecution(ctx2)
}
tracer.EndOperationExecution(ctx)

Expand Down

0 comments on commit 7286e24

Please sign in to comment.