@@ -251,7 +251,7 @@ TEST_F(TUSchedulerTests, WantDiagnostics) {
251
251
[&](std::vector<Diag>) { ++CallbackCount; });
252
252
Ready.notify ();
253
253
254
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
254
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
255
255
}
256
256
EXPECT_EQ (2 , CallbackCount);
257
257
}
@@ -274,7 +274,7 @@ TEST_F(TUSchedulerTests, Debounce) {
274
274
Notification N;
275
275
updateWithDiags (S, Path, " auto (timed out)" , WantDiagnostics::Auto,
276
276
[&](std::vector<Diag>) { N.notify (); });
277
- EXPECT_TRUE (N.wait (timeoutSeconds (5 )));
277
+ EXPECT_TRUE (N.wait (timeoutSeconds (60 )));
278
278
279
279
// Once we start shutting down the TUScheduler, this one becomes a dead write.
280
280
updateWithDiags (S, Path, " auto (discarded)" , WantDiagnostics::Auto,
@@ -340,7 +340,7 @@ TEST_F(TUSchedulerTests, Cancellation) {
340
340
Read (" R3" )();
341
341
Proceed.notify ();
342
342
343
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
343
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
344
344
}
345
345
EXPECT_THAT (DiagsSeen, ElementsAre (" U2" , " U3" ))
346
346
<< " U1 and all dependent reads were cancelled. "
@@ -361,7 +361,7 @@ TEST_F(TUSchedulerTests, InvalidationNoCrash) {
361
361
// We expect invalidation logic to not crash by trying to invalidate a running
362
362
// request.
363
363
S.update (Path, getInputs (Path, " " ), WantDiagnostics::Auto);
364
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
364
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
365
365
S.runWithAST (
366
366
" invalidatable-but-running" , Path,
367
367
[&](llvm::Expected<InputsAndAST> AST) {
@@ -373,7 +373,7 @@ TEST_F(TUSchedulerTests, InvalidationNoCrash) {
373
373
StartedRunning.wait ();
374
374
S.update (Path, getInputs (Path, " " ), WantDiagnostics::Auto);
375
375
ScheduledChange.notify ();
376
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
376
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
377
377
}
378
378
379
379
TEST_F (TUSchedulerTests, Invalidation) {
@@ -429,7 +429,7 @@ TEST_F(TUSchedulerTests, Invalidation) {
429
429
},
430
430
TUScheduler::InvalidateOnUpdate);
431
431
Start.notify ();
432
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
432
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
433
433
434
434
EXPECT_EQ (2 , Builds.load ()) << " Middle build should be skipped" ;
435
435
EXPECT_EQ (4 , Actions.load ()) << " All actions should run (some with error)" ;
@@ -462,7 +462,7 @@ TEST_F(TUSchedulerTests, InvalidationUnchanged) {
462
462
ADD_FAILURE () << " Shouldn't build, identical to previous" ;
463
463
});
464
464
Start.notify ();
465
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
465
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
466
466
467
467
EXPECT_EQ (1 , Actions.load ()) << " All actions should run" ;
468
468
}
@@ -569,7 +569,7 @@ TEST_F(TUSchedulerTests, ManyUpdates) {
569
569
}
570
570
}
571
571
}
572
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
572
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
573
573
} // TUScheduler destructor waits for all operations to finish.
574
574
575
575
std::lock_guard<std::mutex> Lock (Mut);
@@ -611,7 +611,7 @@ TEST_F(TUSchedulerTests, EvictedAST) {
611
611
// one that the cache will evict.
612
612
updateWithCallback (S, Foo, SourceContents, WantDiagnostics::Yes,
613
613
[&BuiltASTCounter]() { ++BuiltASTCounter; });
614
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
614
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
615
615
ASSERT_EQ (BuiltASTCounter.load (), 1 );
616
616
EXPECT_THAT (Tracer.takeMetric (" ast_access_diag" , " hit" ), SizeIs (0 ));
617
617
EXPECT_THAT (Tracer.takeMetric (" ast_access_diag" , " miss" ), SizeIs (1 ));
@@ -622,7 +622,7 @@ TEST_F(TUSchedulerTests, EvictedAST) {
622
622
[&BuiltASTCounter]() { ++BuiltASTCounter; });
623
623
updateWithCallback (S, Baz, SourceContents, WantDiagnostics::Yes,
624
624
[&BuiltASTCounter]() { ++BuiltASTCounter; });
625
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
625
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
626
626
ASSERT_EQ (BuiltASTCounter.load (), 3 );
627
627
EXPECT_THAT (Tracer.takeMetric (" ast_access_diag" , " hit" ), SizeIs (0 ));
628
628
EXPECT_THAT (Tracer.takeMetric (" ast_access_diag" , " miss" ), SizeIs (2 ));
@@ -633,7 +633,7 @@ TEST_F(TUSchedulerTests, EvictedAST) {
633
633
// Access the old file again.
634
634
updateWithCallback (S, Foo, OtherSourceContents, WantDiagnostics::Yes,
635
635
[&BuiltASTCounter]() { ++BuiltASTCounter; });
636
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
636
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
637
637
ASSERT_EQ (BuiltASTCounter.load (), 4 );
638
638
EXPECT_THAT (Tracer.takeMetric (" ast_access_diag" , " hit" ), SizeIs (0 ));
639
639
EXPECT_THAT (Tracer.takeMetric (" ast_access_diag" , " miss" ), SizeIs (1 ));
@@ -659,16 +659,16 @@ TEST_F(TUSchedulerTests, NoopChangesDontThrashCache) {
659
659
660
660
// After opening Foo then Bar, AST cache contains Bar.
661
661
S.update (Foo, FooInputs, WantDiagnostics::Auto);
662
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
662
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
663
663
S.update (Bar, BarInputs, WantDiagnostics::Auto);
664
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
664
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
665
665
ASSERT_THAT (S.getFilesWithCachedAST (), ElementsAre (Bar));
666
666
667
667
// Any number of no-op updates to Foo don't dislodge Bar from the cache.
668
668
S.update (Foo, FooInputs, WantDiagnostics::Auto);
669
669
S.update (Foo, FooInputs, WantDiagnostics::Auto);
670
670
S.update (Foo, FooInputs, WantDiagnostics::Auto);
671
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
671
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
672
672
ASSERT_THAT (S.getFilesWithCachedAST (), ElementsAre (Bar));
673
673
// In fact each file has been built only once.
674
674
ASSERT_EQ (S.fileStats ().lookup (Foo).ASTBuilds , 1u );
@@ -698,12 +698,12 @@ TEST_F(TUSchedulerTests, EmptyPreamble) {
698
698
0u );
699
699
});
700
700
// Wait while the preamble is being built.
701
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
701
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
702
702
703
703
// Update the file which results in an empty preamble.
704
704
S.update (Foo, getInputs (Foo, WithEmptyPreamble), WantDiagnostics::Auto);
705
705
// Wait while the preamble is being built.
706
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
706
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
707
707
S.runWithPreamble (
708
708
" getEmptyPreamble" , Foo, TUScheduler::Stale,
709
709
[&](Expected<InputsAndPreamble> Preamble) {
@@ -731,7 +731,7 @@ TEST_F(TUSchedulerTests, ASTSignalsSmokeTests) {
731
731
// Update the file which results in an empty preamble.
732
732
S.update (Foo, getInputs (Foo, Contents), WantDiagnostics::Yes);
733
733
// Wait while the preamble is being built.
734
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
734
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
735
735
Notification TaskRun;
736
736
S.runWithPreamble (
737
737
" ASTSignals" , Foo, TUScheduler::Stale,
@@ -778,7 +778,7 @@ TEST_F(TUSchedulerTests, RunWaitsForPreamble) {
778
778
Preambles[I] = cantFail (std::move (IP)).Preamble ;
779
779
});
780
780
}
781
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
781
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
782
782
// Check all actions got the same non-null preamble.
783
783
std::lock_guard<std::mutex> Lock (PreamblesMut);
784
784
ASSERT_NE (Preambles[0 ], nullptr );
@@ -805,7 +805,7 @@ TEST_F(TUSchedulerTests, NoopOnEmptyChanges) {
805
805
Updated = false ;
806
806
updateWithDiags (S, Source, Contents, WantDiagnostics::Yes,
807
807
[&Updated](std::vector<Diag>) { Updated = true ; });
808
- bool UpdateFinished = S.blockUntilIdle (timeoutSeconds (10 ));
808
+ bool UpdateFinished = S.blockUntilIdle (timeoutSeconds (60 ));
809
809
if (!UpdateFinished)
810
810
ADD_FAILURE () << " Updated has not finished in one second. Threading bug?" ;
811
811
return Updated;
@@ -877,7 +877,7 @@ TEST_F(TUSchedulerTests, MissingHeader) {
877
877
Field (&Diag::Message,
878
878
" use of undeclared identifier 'b'" )));
879
879
});
880
- S.blockUntilIdle (timeoutSeconds (10 ));
880
+ S.blockUntilIdle (timeoutSeconds (60 ));
881
881
882
882
FS.Files [HeaderB] = " int b;" ;
883
883
FS.Timestamps [HeaderB] = time_t (1 );
@@ -890,7 +890,7 @@ TEST_F(TUSchedulerTests, MissingHeader) {
890
890
});
891
891
892
892
// Ensure previous assertions are done before we touch the FS again.
893
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
893
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
894
894
// Add the high-priority header file, which should reintroduce the error.
895
895
FS.Files [HeaderA] = " int a;" ;
896
896
FS.Timestamps [HeaderA] = time_t (1 );
@@ -912,7 +912,7 @@ TEST_F(TUSchedulerTests, MissingHeader) {
912
912
ElementsAre (Field (&Diag::Message, " use of undeclared identifier 'b'" ));
913
913
});
914
914
915
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
915
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
916
916
EXPECT_EQ (DiagCount, 3U );
917
917
}
918
918
@@ -934,7 +934,7 @@ TEST_F(TUSchedulerTests, NoChangeDiags) {
934
934
// Make sure the AST was actually built.
935
935
cantFail (std::move (IA));
936
936
});
937
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
937
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
938
938
EXPECT_THAT (Tracer.takeMetric (" ast_access_read" , " hit" ), SizeIs (0 ));
939
939
EXPECT_THAT (Tracer.takeMetric (" ast_access_read" , " miss" ), SizeIs (1 ));
940
940
@@ -943,7 +943,7 @@ TEST_F(TUSchedulerTests, NoChangeDiags) {
943
943
std::atomic<bool > SeenDiags (false );
944
944
updateWithDiags (S, FooCpp, Contents, WantDiagnostics::Auto,
945
945
[&](std::vector<Diag>) { SeenDiags = true ; });
946
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
946
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
947
947
ASSERT_TRUE (SeenDiags);
948
948
EXPECT_THAT (Tracer.takeMetric (" ast_access_diag" , " hit" ), SizeIs (1 ));
949
949
EXPECT_THAT (Tracer.takeMetric (" ast_access_diag" , " miss" ), SizeIs (0 ));
@@ -953,7 +953,7 @@ TEST_F(TUSchedulerTests, NoChangeDiags) {
953
953
updateWithDiags (
954
954
S, FooCpp, Contents, WantDiagnostics::Auto,
955
955
[&](std::vector<Diag>) { ADD_FAILURE () << " Should not be called." ; });
956
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
956
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
957
957
}
958
958
959
959
TEST_F (TUSchedulerTests, Run) {
@@ -965,7 +965,7 @@ TEST_F(TUSchedulerTests, Run) {
965
965
std::atomic<int > Counter (0 );
966
966
S.run (" add 1" , /* Path=*/ " " , [&] { ++Counter; });
967
967
S.run (" add 2" , /* Path=*/ " " , [&] { Counter += 2 ; });
968
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
968
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
969
969
EXPECT_EQ (Counter.load (), 3 );
970
970
971
971
Notification TaskRun;
@@ -1157,7 +1157,7 @@ TEST_F(TUSchedulerTests, AsyncPreambleThread) {
1157
1157
auto PI = getInputs (File, " " );
1158
1158
PI.Version = InputsV0.str ();
1159
1159
S.update (File, PI, WantDiagnostics::Auto);
1160
- S.blockUntilIdle (timeoutSeconds (10 ));
1160
+ S.blockUntilIdle (timeoutSeconds (60 ));
1161
1161
1162
1162
// Block preamble builds.
1163
1163
PI.Version = InputsV1.str ();
@@ -1193,15 +1193,15 @@ TEST_F(TUSchedulerTests, OnlyPublishWhenPreambleIsBuilt) {
1193
1193
1194
1194
Path File = testPath (" foo.cpp" );
1195
1195
S.update (File, getInputs (File, " " ), WantDiagnostics::Auto);
1196
- S.blockUntilIdle (timeoutSeconds (10 ));
1196
+ S.blockUntilIdle (timeoutSeconds (60 ));
1197
1197
EXPECT_EQ (PreamblePublishCount, 1 );
1198
1198
// Same contents, no publish.
1199
1199
S.update (File, getInputs (File, " " ), WantDiagnostics::Auto);
1200
- S.blockUntilIdle (timeoutSeconds (10 ));
1200
+ S.blockUntilIdle (timeoutSeconds (60 ));
1201
1201
EXPECT_EQ (PreamblePublishCount, 1 );
1202
1202
// New contents, should publish.
1203
1203
S.update (File, getInputs (File, " #define FOO" ), WantDiagnostics::Auto);
1204
- S.blockUntilIdle (timeoutSeconds (10 ));
1204
+ S.blockUntilIdle (timeoutSeconds (60 ));
1205
1205
EXPECT_EQ (PreamblePublishCount, 2 );
1206
1206
}
1207
1207
@@ -1218,7 +1218,7 @@ TEST_F(TUSchedulerTests, PublishWithStalePreamble) {
1218
1218
PathRef Path, llvm::StringRef Version, CapturedASTCtx,
1219
1219
std::shared_ptr<const include_cleaner::PragmaIncludes>) override {
1220
1220
if (BuildBefore)
1221
- ASSERT_TRUE (UnblockPreamble.wait (timeoutSeconds (5 )))
1221
+ ASSERT_TRUE (UnblockPreamble.wait (timeoutSeconds (60 )))
1222
1222
<< " Expected notification" ;
1223
1223
BuildBefore = true ;
1224
1224
}
@@ -1307,7 +1307,7 @@ TEST_F(TUSchedulerTests, PublishWithStalePreamble) {
1307
1307
ASSERT_THAT (BlockForDiags (PI), testing::Pair (" 1" , " 3" ));
1308
1308
1309
1309
UnblockPreamble.notify ();
1310
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (5 )));
1310
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1311
1311
1312
1312
// Make sure that we have eventual consistency.
1313
1313
EXPECT_THAT (Collector.diagVersions ().back (), Pair (PI.Version , PI.Version ));
@@ -1316,7 +1316,7 @@ TEST_F(TUSchedulerTests, PublishWithStalePreamble) {
1316
1316
PI.Version = " 4" ;
1317
1317
PI.Contents = " #define FOO\n " + PI.Version ;
1318
1318
S.update (File, PI, WantDiagnostics::No);
1319
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (5 )));
1319
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1320
1320
EXPECT_THAT (Collector.diagVersions ().back (), Pair (" 3" , " 3" ));
1321
1321
}
1322
1322
@@ -1353,7 +1353,7 @@ TEST_F(TUSchedulerTests, IncluderCache) {
1353
1353
TUScheduler S (CDB, optsForTest ());
1354
1354
auto GetFlags = [&](PathRef Header) {
1355
1355
S.update (Header, getInputs (Header, " ;" ), WantDiagnostics::Yes);
1356
- EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1356
+ EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1357
1357
Notification CmdDone;
1358
1358
tooling::CompileCommand Cmd;
1359
1359
S.runWithPreamble (" GetFlags" , Header, TUScheduler::StaleOrAbsent,
@@ -1363,7 +1363,7 @@ TEST_F(TUSchedulerTests, IncluderCache) {
1363
1363
CmdDone.notify ();
1364
1364
});
1365
1365
CmdDone.wait ();
1366
- EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1366
+ EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1367
1367
return Cmd.CommandLine ;
1368
1368
};
1369
1369
@@ -1381,7 +1381,7 @@ TEST_F(TUSchedulerTests, IncluderCache) {
1381
1381
#include "unreliable.h"
1382
1382
)cpp" ;
1383
1383
S.update (Main, getInputs (Main, AllIncludes), WantDiagnostics::Yes);
1384
- EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1384
+ EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1385
1385
EXPECT_THAT (GetFlags (NoCmd), Contains (" -DMAIN" ))
1386
1386
<< " Included from main file, has no own command" ;
1387
1387
EXPECT_THAT (GetFlags (Unreliable), Contains (" -DMAIN" ))
@@ -1397,7 +1397,7 @@ TEST_F(TUSchedulerTests, IncluderCache) {
1397
1397
#include "not_included.h"
1398
1398
)cpp" ;
1399
1399
S.update (Main2, getInputs (Main2, SomeIncludes), WantDiagnostics::Yes);
1400
- EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1400
+ EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1401
1401
EXPECT_THAT (GetFlags (NoCmd),
1402
1402
AllOf (Contains (" -DMAIN" ), Not (Contains (" -DMAIN2" ))))
1403
1403
<< " mainfile association is stable" ;
@@ -1408,14 +1408,14 @@ TEST_F(TUSchedulerTests, IncluderCache) {
1408
1408
// Remove includes from main - this marks the associations as invalid but
1409
1409
// doesn't actually remove them until another preamble claims them.
1410
1410
S.update (Main, getInputs (Main, " " ), WantDiagnostics::Yes);
1411
- EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1411
+ EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1412
1412
EXPECT_THAT (GetFlags (NoCmd),
1413
1413
AllOf (Contains (" -DMAIN" ), Not (Contains (" -DMAIN2" ))))
1414
1414
<< " mainfile association not updated yet!" ;
1415
1415
1416
1416
// Open yet another file - this time it claims the associations.
1417
1417
S.update (Main3, getInputs (Main3, SomeIncludes), WantDiagnostics::Yes);
1418
- EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1418
+ EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1419
1419
EXPECT_THAT (GetFlags (NoCmd), Contains (" -DMAIN3" ))
1420
1420
<< " association invalidated and then claimed by main3" ;
1421
1421
EXPECT_THAT (GetFlags (Unreliable), Contains (" -DMAIN" ))
@@ -1430,11 +1430,11 @@ TEST_F(TUSchedulerTests, IncluderCache) {
1430
1430
// Also run update for Main3 to invalidate the preeamble to make sure next
1431
1431
// update populates include cache associations.
1432
1432
S.update (Main3, getInputs (Main3, SomeIncludes), WantDiagnostics::Yes);
1433
- EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1433
+ EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1434
1434
// Re-add the file and make sure nothing crashes.
1435
1435
CDB.FailAll = false ;
1436
1436
S.update (Main3, getInputs (Main3, SomeIncludes), WantDiagnostics::Yes);
1437
- EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1437
+ EXPECT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1438
1438
EXPECT_THAT (GetFlags (NoCmd), Contains (" -DMAIN3" ))
1439
1439
<< " association invalidated and then claimed by main3" ;
1440
1440
}
@@ -1448,7 +1448,7 @@ TEST_F(TUSchedulerTests, PreservesLastActiveFile) {
1448
1448
1449
1449
auto CheckNoFileActionsSeesLastActiveFile =
1450
1450
[&](llvm::StringRef LastActiveFile) {
1451
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1451
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1452
1452
std::atomic<int > Counter (0 );
1453
1453
// We only check for run and runQuick as runWithAST and
1454
1454
// runWithPreamble is always bound to a file.
@@ -1460,7 +1460,7 @@ TEST_F(TUSchedulerTests, PreservesLastActiveFile) {
1460
1460
++Counter;
1461
1461
EXPECT_EQ (LastActiveFile, boundPath ());
1462
1462
});
1463
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1463
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1464
1464
EXPECT_EQ (2 , Counter.load ());
1465
1465
};
1466
1466
@@ -1589,7 +1589,7 @@ TEST_F(TUSchedulerTests, PreambleThrottle) {
1589
1589
Filenames.push_back (Path);
1590
1590
S.update (Path, getInputs (Path, " " ), WantDiagnostics::Yes);
1591
1591
}
1592
- ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (10 )));
1592
+ ASSERT_TRUE (S.blockUntilIdle (timeoutSeconds (60 )));
1593
1593
1594
1594
// The throttler saw all files, and we built them.
1595
1595
EXPECT_THAT (Throttler.Acquires ,
0 commit comments