-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Async TestKit] Convert Akka.Streams.Tests to async - FlowFlattenMergeSpec FlowGroupBySpec TimeoutsSpec #5963
Conversation
…ySpec TimeoutsSpec
…FlowFlattenMergeSpec
…nMergeSpec' of github.com:Arkatufus/akka.net into async_testkit/convert_Akka.Streams.Tests_Dsl.FlowFlattenMergeSpec
…FlowFlattenMergeSpec
…FlowFlattenMergeSpec
…nMergeSpec' of github.com:Arkatufus/akka.net into async_testkit/convert_Akka.Streams.Tests_Dsl.FlowFlattenMergeSpec
@Arkatufus sorry about the merge conflicts :\ |
…FlowFlattenMergeSpec # Conflicts: # src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveStreams.Core.verified.txt # src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveStreams.DotNet.verified.txt # src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveStreams.Net.verified.txt
Its fine, its a simple one to fix. |
…FlowFlattenMergeSpec
…nMergeSpec' of github.com:Arkatufus/akka.net into async_testkit/convert_Akka.Streams.Tests_Dsl.FlowFlattenMergeSpec
…FlowFlattenMergeSpec
…FlowFlattenMergeSpec
Test run is timing out. |
…FlowFlattenMergeSpec # Conflicts: # src/core/Akka.Streams.TestKit/Utils.cs
…FlowFlattenMergeSpec
…FlowFlattenMergeSpec
OutputStreamSourceSpec was deadlocking, hope that it is the only one |
…nMergeSpec' of github.com:Arkatufus/akka.net into async_testkit/convert_Akka.Streams.Tests_Dsl.FlowFlattenMergeSpec
…FlowFlattenMergeSpec
…FlowFlattenMergeSpec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending test run results.
@@ -1936,6 +1936,7 @@ namespace Akka.Streams.Dsl | |||
public static Akka.Streams.Dsl.Sink<TIn, System.Threading.Tasks.Task<TIn>> First<TIn>() { } | |||
public static Akka.Streams.Dsl.Sink<TIn, System.Threading.Tasks.Task<TIn>> FirstOrDefault<TIn>() { } | |||
public static Akka.Streams.Dsl.Sink<TIn, System.Threading.Tasks.Task> ForEach<TIn>(System.Action<TIn> action) { } | |||
public static Akka.Streams.Dsl.Sink<TIn, System.Threading.Tasks.Task> ForEachAsync<TIn>(int parallelism, System.Func<TIn, System.Threading.Tasks.Task> action) { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
throw new Exception($"expected no StreamSupervisor children, but got {children.Aggregate("", (s, @ref) => s + @ref + ", ")}"); | ||
{ | ||
children.ForEach(c=>c.Tell(StreamSupervisor.PrintDebugDump.Instance)); | ||
await Task.Delay(100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually need a delay here or is this just compiler ceremony?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometime the stream supervisor got killed faster than the debug print being processed at the end of the test, its allowing for a small leeway for the stream supervisor children to print out a debug.
@@ -250,8 +250,8 @@ Target "RunTests" (fun _ -> | |||
let runSingleProject project = | |||
let arguments = | |||
match (hasTeamCity) with | |||
| true -> (sprintf "test -c Release --no-build --logger:trx --logger:\"console;verbosity=normal\" --framework %s --results-directory \"%s\" -- -parallel none -teamcity" testNetFrameworkVersion outputTests) | |||
| false -> (sprintf "test -c Release --no-build --logger:trx --logger:\"console;verbosity=normal\" --framework %s --results-directory \"%s\" -- -parallel none" testNetFrameworkVersion outputTests) | |||
| true -> (sprintf "test -c Release --blame-crash --blame-hang-timeout 30s --no-build --logger:trx --logger:\"console;verbosity=normal\" --framework %s --results-directory \"%s\" -- -parallel none -teamcity" testNetFrameworkVersion outputTests) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well keep this in here for the time being
…nMergeSpec' of github.com:Arkatufus/akka.net into async_testkit/convert_Akka.Streams.Tests_Dsl.FlowFlattenMergeSpec
No description provided.