[clangd] Fix data race in BackgroundIndex test
authorKadir Cetinkaya <kadircet@google.com>
Sat, 9 May 2020 16:14:48 +0000 (18:14 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Sat, 9 May 2020 16:15:27 +0000 (18:15 +0200)
commitc746781f5085a965cfc64bd8ddf904217b797ab8
tree83dca9b520bfb2181ccc4d4d8d2df64b0f4c8adb
parentb05c8c5756e473e9ec51ed65869f6ed42c552404
[clangd] Fix data race in BackgroundIndex test

MockFSProvider is not thread-safe. Make sure we don't modify it while
background index is working.
clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp