Skip to content

test flake: data race in TestFeaturesService_EntitlementsAPI #3747

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

Closed
johnstcn opened this issue Aug 30, 2022 · 0 comments · Fixed by #3765
Closed

test flake: data race in TestFeaturesService_EntitlementsAPI #3747

johnstcn opened this issue Aug 30, 2022 · 0 comments · Fixed by #3765

Comments

@johnstcn
Copy link
Member

=== Failed
=== FAIL: enterprise/coderd TestFeaturesService_EntitlementsAPI/NoLicense (0.00s)
    testing.go:1319: race detected during execution of test
    --- FAIL: TestFeaturesService_EntitlementsAPI/NoLicense (0.00s)

=== FAIL: enterprise/coderd TestFeaturesService_EntitlementsAPI/FullLicense (0.00s)
    testing.go:1319: race detected during execution of test
    --- FAIL: TestFeaturesService_EntitlementsAPI/FullLicense (0.00s)

=== FAIL: enterprise/coderd TestFeaturesService_EntitlementsAPI/Warnings (0.00s)
    testing.go:1319: race detected during execution of test
    --- FAIL: TestFeaturesService_EntitlementsAPI/Warnings (0.00s)

=== FAIL: enterprise/coderd TestFeaturesService_EntitlementsAPI (0.00s)

=== FAIL: enterprise/coderd TestFeaturesServiceSyncEntitlements (0.00s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c001483410 by goroutine 3840:
  github.com/coder/coder/enterprise/coderd.TestFeaturesService_EntitlementsAPI.func3()
      /home/coder/src/cdr/coder/enterprise/coderd/features_internal_test.go:139 +0x58d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous write at 0x00c001483410 by goroutine 3839:
  github.com/coder/coder/enterprise/coderd.TestFeaturesService_EntitlementsAPI.func2()
      /home/coder/src/cdr/coder/enterprise/coderd/features_internal_test.go:89 +0x509
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 3840 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  github.com/coder/coder/enterprise/coderd.TestFeaturesService_EntitlementsAPI()
      /home/coder/src/cdr/coder/enterprise/coderd/features_internal_test.go:115 +0x81c
  testing.tRunner()

Both appear to refer to concurrent usage of database.Store.

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

Successfully merging a pull request may close this issue.

2 participants