Skip to content

Commit

Permalink
Harden sender serialization specs (#87)
Browse files Browse the repository at this point in the history
* cleanup solution items

* hardened serialization specs

* hardened end2end specs
  • Loading branch information
Aaronontheweb authored Aug 29, 2024
1 parent e7b607b commit 9413645
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace Akka.Remote.Chunking.Tests;
public class ChunkingExtensionEnd2EndSpecs : TestKit.Xunit2.TestKit
{
public static readonly Config ClusterConfig = ConfigurationFactory.ParseString(@"
akka.loglevel = DEBUG
akka.actor.provider = cluster
akka.remote.dot-netty.tcp.port = 0
akka.remote.dot-netty.tcp.hostname = localhost
Expand All @@ -26,7 +27,8 @@ public class ChunkingExtensionEnd2EndSpecs : TestKit.Xunit2.TestKit
public ChunkingExtensionEnd2EndSpecs(ITestOutputHelper output) : base(ClusterConfig, output: output)
{
Sys2 = ActorSystem.Create(Sys.Name, Sys.Settings.Config);
Settings = ChunkingManagerSettings.Create(Sys);
InitializeLogger(Sys2);
Settings = ChunkingManagerSettings.Create(Sys) with { ChunkSize = 1 };
}

public ActorSystem Sys2 { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ public ChunkingSerializationSpecs(ITestOutputHelper output) : base(ChunkingConfi
[Fact]
public void ShouldSerializeChunkedDelivery()
{
var msg = new ChunkedDelivery("hello", TestActor);
var probe = CreateTestProbe();

// make sure the IActorRefs are different
var msg = new ChunkedDelivery("hello", TestActor, probe);
VerifySerialization(msg);
}

Expand Down

0 comments on commit 9413645

Please sign in to comment.