@@ -580,8 +580,9 @@ TEST_F(BackgroundIndexTest, UncompilableFiles) {
580
580
CDB.setCompileCommand (testPath (" build/../A.cc" ), Cmd);
581
581
ASSERT_TRUE (Idx.blockUntilIdleForTest ());
582
582
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" )));
585
586
586
587
{
587
588
auto Shard = MSS.loadShard (testPath (" A.cc" ));
@@ -635,7 +636,8 @@ TEST_F(BackgroundIndexTest, CmdLineHash) {
635
636
CDB.setCompileCommand (testPath (" build/../A.cc" ), Cmd);
636
637
ASSERT_TRUE (Idx.blockUntilIdleForTest ());
637
638
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" )));
639
641
// Make sure we only store the Cmd for main file.
640
642
EXPECT_FALSE (MSS.loadShard (testPath (" A.h" ))->Cmd );
641
643
0 commit comments