Skip to content

Commit 9dd8182

Browse files
matthiasrichterktf
authored andcommitted
Cleaning and speeding up the StaggeringWorkflow unit test
Reduce staggering time to speed up the unit test. Removing obsolete code, the compute method is not invoked any more after issuing end of stream, the local handling is not necessary any more.
1 parent 0a6c4aa commit 9dd8182

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Framework/Core/test/test_StaggeringWorkflow.cxx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,24 +83,18 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
8383
}
8484

8585
auto producerFct = adaptStateless([subspecs](DataAllocator& outputs, RawDeviceService& device, ControlService& control) {
86-
// static bool ready = false;
87-
// if (ready) {
88-
// return;
89-
// }
9086

9187
for (auto const& subspec : subspecs) {
92-
// since the snapshot copy is ready for sending it is scheduled but hald back
88+
// since the snapshot copy is ready for sending it is scheduled but held back
9389
// because of the CompletionPolicy trigger matcher. This message will be
9490
// sent together with the second message.
9591
outputs.snapshot(Output{"PROD", "CHANNEL", subspec, Lifetime::Timeframe}, subspec);
96-
device.device()->WaitFor(std::chrono::milliseconds(1000));
92+
device.device()->WaitFor(std::chrono::milliseconds(100));
9793
outputs.snapshot(Output{"PROD", "TRIGGER", subspec, Lifetime::Timeframe}, subspec);
98-
// std::cout << "publishing channel " << subspec << std::endl;
99-
device.device()->WaitFor(std::chrono::milliseconds(1000));
94+
device.device()->WaitFor(std::chrono::milliseconds(100));
10095
}
10196
control.endOfStream();
10297
control.readyToQuit(QuitRequest::Me);
103-
// ready = true;
10498
});
10599

106100
auto processorFct = [](ProcessingContext& pc) {

0 commit comments

Comments
 (0)