Skip to content

graphqlbackend: once parse schema once for all tests

Created by: unknwon

This PRs adds sync.Once to only parse GraphQL schema once for all tests in the cmd/frontend/graphqlbackend package, given we don't modify the schema in tests so it stays the same.

Addresses https://github.com/sourcegraph/sourcegraph/pull/8063#discussion_r371254377.

Merge request reports

Loading