[clangd] Fix test (it worked by coincidence before)
authorSam McCall <sam.mccall@gmail.com>
Thu, 5 Mar 2020 09:11:44 +0000 (10:11 +0100)
committerSam McCall <sam.mccall@gmail.com>
Thu, 5 Mar 2020 09:11:55 +0000 (10:11 +0100)
clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp

index 6ca6e54..c9569d2 100644 (file)
@@ -466,7 +466,7 @@ TEST_F(TUSchedulerTests, ManyUpdates) {
         auto Inputs = getInputs(File, Contents.str());
         {
           WithContextValue WithNonce(NonceKey, ++Nonce);
-          Inputs.Version = Nonce;
+          Inputs.Version = std::to_string(Nonce);
           updateWithDiags(
               S, File, Inputs, WantDiagnostics::Auto,
               [File, Nonce, &Mut, &TotalUpdates](std::vector<Diag>) {