@@ -580,8 +580,9 @@ TEST_F(BackgroundIndexTest, UncompilableFiles) {
580580 CDB.setCompileCommand (testPath (" build/../A.cc" ), Cmd);
581581 ASSERT_TRUE (Idx.blockUntilIdleForTest ());
582582
583- EXPECT_THAT (Storage.keys (), ElementsAre (testPath (" A.cc" ), testPath (" A.h" ),
584- testPath (" B.h" ), testPath (" C.h" )));
583+ EXPECT_THAT (Storage.keys (),
584+ UnorderedElementsAre (testPath (" A.cc" ), testPath (" A.h" ),
585+ testPath (" B.h" ), testPath (" C.h" )));
585586
586587 {
587588 auto Shard = MSS.loadShard (testPath (" A.cc" ));
@@ -635,7 +636,8 @@ TEST_F(BackgroundIndexTest, CmdLineHash) {
635636 CDB.setCompileCommand (testPath (" build/../A.cc" ), Cmd);
636637 ASSERT_TRUE (Idx.blockUntilIdleForTest ());
637638
638- EXPECT_THAT (Storage.keys (), ElementsAre (testPath (" A.cc" ), testPath (" A.h" )));
639+ EXPECT_THAT (Storage.keys (),
640+ UnorderedElementsAre (testPath (" A.cc" ), testPath (" A.h" )));
639641 // Make sure we only store the Cmd for main file.
640642 EXPECT_FALSE (MSS.loadShard (testPath (" A.h" ))->Cmd );
641643
0 commit comments