Skip to content

Commit

Permalink
[sre] Remove the use of parallel stream when synchronizing the probes.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Oct 23, 2020
1 parent 9f94c0a commit 41705d4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Expand Up @@ -155,7 +155,7 @@ abstract class AbstractProbeService extends AbstractSreService implements ProbeS
}

override sync {
this.probes.values.parallelStream.forEach [
this.probes.values.forEach [
it.sync
]
}
Expand Down
Expand Up @@ -108,6 +108,8 @@ abstract class AbstractProbeServiceTest {

waitForTheKernel(STANDARD_TIMEOUT)

service.runTestCase_afterShutdown(probe)

return probe
}

Expand Down Expand Up @@ -151,4 +153,6 @@ abstract class AbstractProbeServiceTest {

protected abstract def runTestCase_afterStopTest(service : ProbeService, probe : Probe<Integer>)

protected abstract def runTestCase_afterShutdown(service : ProbeService, probe : Probe<Integer>)

}
Expand Up @@ -53,4 +53,8 @@ class AsynchronousProbeServiceTest extends AbstractProbeServiceTest {
protected def runTestCase_afterStopTest(service : ProbeService, probe : Probe<Integer>) {
}

protected def runTestCase_afterShutdown(service : ProbeService, probe : Probe<Integer>) {
probe.sync
}

}
Expand Up @@ -56,4 +56,8 @@ class SynchronousProbeServiceTest extends AbstractProbeServiceTest {
service.sync
}

protected def runTestCase_afterShutdown(service : ProbeService, probe : Probe<Integer>) {
service.sync
}

}

0 comments on commit 41705d4

Please sign in to comment.