Make Store() and Delete() mutually exclusive

There's a race condition where we might sometimes delete a value after
Store() and before LoadOrStore(), so the test fails flakily. Making them
mutually exclusive so they don't fail anymore.

Test: bazelisk test --runs_per_test 200 --features race  //go/pkg/cache/singleflightcache:go_default_test --test_output=streamed --test_filter="TestStore" (this failed 4/200 without the fix and 0/400 with the fix).
1 file changed
tree: 3e415f55ba98c0671cb158e2305ca07580759d45
  1. .bazelci/
  2. .githooks/
  3. external/
  4. go/
  5. .gitignore
  6. AUTHORS
  7. BUILD.bazel
  8. check-gofmt.sh
  9. CONTRIBUTING.md
  10. CONTRIBUTORS
  11. go.mod
  12. go.sum
  13. LICENSE
  14. README.md
  15. remote-apis-sdks-deps.bzl
  16. setup-githooks.sh
  17. WORKSPACE
README.md

Remote Execution API SDKs

CI status: Build Status

This repository contains SDKs for the Remote Execution API.

See each language subdirectory's README.md for more specific instructions on using the SDK for that language.