Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Race in Execute #458

Closed
egonelbre opened this issue Mar 10, 2019 · 0 comments
Closed

Data Race in Execute #458

egonelbre opened this issue Mar 10, 2019 · 0 comments

Comments

@egonelbre
Copy link
Contributor

Running tests with go test -race -count 5 -parallel 32, shows:

==================
WARNING: DATA RACE
Write at 0x00c000007138 by goroutine 104:
  github.com/graphql-go/graphql.Execute.func1()
      F:/Go/src/github.com/graphql-go/graphql/executor.go:61 +0x333

Previous read at 0x00c000007138 by goroutine 43:
  github.com/graphql-go/graphql.Execute()
      F:/Go/src/github.com/graphql-go/graphql/executor.go:75 +0x345
  github.com/graphql-go/graphql.Do()
      F:/Go/src/github.com/graphql-go/graphql/graphql.go:55 +0x664
  github.com/graphql-go/graphql_test.TestContextDeadline()
      F:/Go/src/github.com/graphql-go/graphql/executor_test.go:1895 +0x5c8
  testing.tRunner()
      C:/Go/src/testing/testing.go:865 +0x16a

Goroutine 104 (running) created at:
  github.com/graphql-go/graphql.Execute()
      F:/Go/src/github.com/graphql-go/graphql/executor.go:36 +0x215
  github.com/graphql-go/graphql.Do()
      F:/Go/src/github.com/graphql-go/graphql/graphql.go:55 +0x664
  github.com/graphql-go/graphql_test.TestContextDeadline()
      F:/Go/src/github.com/graphql-go/graphql/executor_test.go:1895 +0x5c8
  testing.tRunner()
      C:/Go/src/testing/testing.go:865 +0x16a
==================
--- FAIL: TestValidate_OverlappingFieldsCanBeMerged_ReturnTypesMustBeUnambiguous_ReportsCorrectlyWhenANonExclusiveFollosAnExclusive (0.02s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant