diff --git a/benchmarks/AutoClusterBenchmark/AutoClusterBenchmark.csproj b/benchmarks/AutoClusterBenchmark/AutoClusterBenchmark.csproj index 38f2bfd34b..0a27a76b0c 100644 --- a/benchmarks/AutoClusterBenchmark/AutoClusterBenchmark.csproj +++ b/benchmarks/AutoClusterBenchmark/AutoClusterBenchmark.csproj @@ -22,13 +22,13 @@ - + - + - + diff --git a/benchmarks/ClusterBenchmark/ClusterBenchmark.csproj b/benchmarks/ClusterBenchmark/ClusterBenchmark.csproj index 7c82cecc80..7e42fb1377 100644 --- a/benchmarks/ClusterBenchmark/ClusterBenchmark.csproj +++ b/benchmarks/ClusterBenchmark/ClusterBenchmark.csproj @@ -21,13 +21,13 @@ - + - + - + diff --git a/benchmarks/HostedService/HostedService.csproj b/benchmarks/HostedService/HostedService.csproj index 3fc8179d81..42adc685ff 100644 --- a/benchmarks/HostedService/HostedService.csproj +++ b/benchmarks/HostedService/HostedService.csproj @@ -7,7 +7,7 @@ - + diff --git a/benchmarks/KubernetesDiagnostics/KubernetesDiagnostics.csproj b/benchmarks/KubernetesDiagnostics/KubernetesDiagnostics.csproj index 39dcbcbcf7..8f04f6dca3 100644 --- a/benchmarks/KubernetesDiagnostics/KubernetesDiagnostics.csproj +++ b/benchmarks/KubernetesDiagnostics/KubernetesDiagnostics.csproj @@ -8,14 +8,14 @@ - + - - - - - - + + + + + + diff --git a/benchmarks/RemoteBenchmark/Node1/Node1.csproj b/benchmarks/RemoteBenchmark/Node1/Node1.csproj index 43684725e2..188d2c4358 100644 --- a/benchmarks/RemoteBenchmark/Node1/Node1.csproj +++ b/benchmarks/RemoteBenchmark/Node1/Node1.csproj @@ -13,7 +13,7 @@ - + NETCORE diff --git a/benchmarks/RemoteBenchmark/Node2/Node2.csproj b/benchmarks/RemoteBenchmark/Node2/Node2.csproj index 43684725e2..188d2c4358 100644 --- a/benchmarks/RemoteBenchmark/Node2/Node2.csproj +++ b/benchmarks/RemoteBenchmark/Node2/Node2.csproj @@ -13,7 +13,7 @@ - + NETCORE diff --git a/examples/ActorMetrics/ActorMetrics.csproj b/examples/ActorMetrics/ActorMetrics.csproj index 41d211de09..c681c3c3fb 100644 --- a/examples/ActorMetrics/ActorMetrics.csproj +++ b/examples/ActorMetrics/ActorMetrics.csproj @@ -13,7 +13,7 @@ - + diff --git a/examples/ClusterPubSub/ClusterPubSub.csproj b/examples/ClusterPubSub/ClusterPubSub.csproj index 7d978ac4c1..d22b1ec946 100644 --- a/examples/ClusterPubSub/ClusterPubSub.csproj +++ b/examples/ClusterPubSub/ClusterPubSub.csproj @@ -17,7 +17,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/examples/DeadLetterThrottling/DeadLetterThrottling.csproj b/examples/DeadLetterThrottling/DeadLetterThrottling.csproj index 46938ec880..1bd9225a0f 100644 --- a/examples/DeadLetterThrottling/DeadLetterThrottling.csproj +++ b/examples/DeadLetterThrottling/DeadLetterThrottling.csproj @@ -10,7 +10,7 @@ - + diff --git a/examples/DependencyInjection/DependencyInjection.csproj b/examples/DependencyInjection/DependencyInjection.csproj index 0e8bd197fb..1905b45598 100644 --- a/examples/DependencyInjection/DependencyInjection.csproj +++ b/examples/DependencyInjection/DependencyInjection.csproj @@ -6,7 +6,7 @@ - + diff --git a/examples/EventStreamTopicsCluster/EventStreamTopicsCluster.csproj b/examples/EventStreamTopicsCluster/EventStreamTopicsCluster.csproj index 3594b1fd9d..58c07f1c87 100644 --- a/examples/EventStreamTopicsCluster/EventStreamTopicsCluster.csproj +++ b/examples/EventStreamTopicsCluster/EventStreamTopicsCluster.csproj @@ -17,8 +17,8 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/examples/Supervision/Supervision.csproj b/examples/Supervision/Supervision.csproj index f6bc8fee4a..d67468524c 100644 --- a/examples/Supervision/Supervision.csproj +++ b/examples/Supervision/Supervision.csproj @@ -7,7 +7,7 @@ - - + + \ No newline at end of file diff --git a/src/Proto.Actor/Proto.Actor.csproj b/src/Proto.Actor/Proto.Actor.csproj index b7e2980c76..dafe477cda 100644 --- a/src/Proto.Actor/Proto.Actor.csproj +++ b/src/Proto.Actor/Proto.Actor.csproj @@ -11,15 +11,16 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - + + diff --git a/src/Proto.Cluster.AmazonECS/Proto.Cluster.AmazonECS.csproj b/src/Proto.Cluster.AmazonECS/Proto.Cluster.AmazonECS.csproj index 3a859dd5fd..3c2692313b 100644 --- a/src/Proto.Cluster.AmazonECS/Proto.Cluster.AmazonECS.csproj +++ b/src/Proto.Cluster.AmazonECS/Proto.Cluster.AmazonECS.csproj @@ -7,7 +7,8 @@ - + + diff --git a/src/Proto.Cluster.CodeGen/Proto.Cluster.CodeGen.csproj b/src/Proto.Cluster.CodeGen/Proto.Cluster.CodeGen.csproj index fa43d1dac1..5229f26406 100644 --- a/src/Proto.Cluster.CodeGen/Proto.Cluster.CodeGen.csproj +++ b/src/Proto.Cluster.CodeGen/Proto.Cluster.CodeGen.csproj @@ -32,8 +32,8 @@ - - + + diff --git a/src/Proto.Cluster.Consul/Proto.Cluster.Consul.csproj b/src/Proto.Cluster.Consul/Proto.Cluster.Consul.csproj index 2f8077d51f..367f5e3d90 100644 --- a/src/Proto.Cluster.Consul/Proto.Cluster.Consul.csproj +++ b/src/Proto.Cluster.Consul/Proto.Cluster.Consul.csproj @@ -5,11 +5,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Cluster.Identity.MongoDb/Proto.Cluster.Identity.MongoDb.csproj b/src/Proto.Cluster.Identity.MongoDb/Proto.Cluster.Identity.MongoDb.csproj index abe1519438..369af99c48 100644 --- a/src/Proto.Cluster.Identity.MongoDb/Proto.Cluster.Identity.MongoDb.csproj +++ b/src/Proto.Cluster.Identity.MongoDb/Proto.Cluster.Identity.MongoDb.csproj @@ -16,6 +16,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Cluster.Identity.Redis/Proto.Cluster.Identity.Redis.csproj b/src/Proto.Cluster.Identity.Redis/Proto.Cluster.Identity.Redis.csproj index 98eb950168..8e97fef60d 100644 --- a/src/Proto.Cluster.Identity.Redis/Proto.Cluster.Identity.Redis.csproj +++ b/src/Proto.Cluster.Identity.Redis/Proto.Cluster.Identity.Redis.csproj @@ -16,6 +16,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Cluster.Kubernetes/Proto.Cluster.Kubernetes.csproj b/src/Proto.Cluster.Kubernetes/Proto.Cluster.Kubernetes.csproj index b356f8c645..290781c47f 100644 --- a/src/Proto.Cluster.Kubernetes/Proto.Cluster.Kubernetes.csproj +++ b/src/Proto.Cluster.Kubernetes/Proto.Cluster.Kubernetes.csproj @@ -7,11 +7,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Cluster.TestProvider/Proto.Cluster.TestProvider.csproj b/src/Proto.Cluster.TestProvider/Proto.Cluster.TestProvider.csproj index d120fcc0c9..11e3bda661 100644 --- a/src/Proto.Cluster.TestProvider/Proto.Cluster.TestProvider.csproj +++ b/src/Proto.Cluster.TestProvider/Proto.Cluster.TestProvider.csproj @@ -5,11 +5,12 @@ net5.0;net6.0;netstandard2.1 - + all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Cluster/Proto.Cluster.csproj b/src/Proto.Cluster/Proto.Cluster.csproj index 12039c25c7..6359f6eeab 100644 --- a/src/Proto.Cluster/Proto.Cluster.csproj +++ b/src/Proto.Cluster/Proto.Cluster.csproj @@ -11,6 +11,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.OpenTelemetry/Proto.OpenTelemetry.csproj b/src/Proto.OpenTelemetry/Proto.OpenTelemetry.csproj index c4ee96a1b6..f05dded085 100644 --- a/src/Proto.OpenTelemetry/Proto.OpenTelemetry.csproj +++ b/src/Proto.OpenTelemetry/Proto.OpenTelemetry.csproj @@ -11,6 +11,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.OpenTracing/Proto.OpenTracing.csproj b/src/Proto.OpenTracing/Proto.OpenTracing.csproj index 3af9a4bb98..4cb5ae0f4e 100644 --- a/src/Proto.OpenTracing/Proto.OpenTracing.csproj +++ b/src/Proto.OpenTracing/Proto.OpenTracing.csproj @@ -9,6 +9,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Persistence.Couchbase/Proto.Persistence.Couchbase.csproj b/src/Proto.Persistence.Couchbase/Proto.Persistence.Couchbase.csproj index bd4bc99dd9..08c20e5065 100644 --- a/src/Proto.Persistence.Couchbase/Proto.Persistence.Couchbase.csproj +++ b/src/Proto.Persistence.Couchbase/Proto.Persistence.Couchbase.csproj @@ -8,6 +8,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Persistence.DynamoDB/Proto.Persistence.DynamoDB.csproj b/src/Proto.Persistence.DynamoDB/Proto.Persistence.DynamoDB.csproj index d120d3b403..036e0172ad 100644 --- a/src/Proto.Persistence.DynamoDB/Proto.Persistence.DynamoDB.csproj +++ b/src/Proto.Persistence.DynamoDB/Proto.Persistence.DynamoDB.csproj @@ -8,6 +8,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Persistence.Marten/Proto.Persistence.Marten.csproj b/src/Proto.Persistence.Marten/Proto.Persistence.Marten.csproj index aba85fc43f..d9ee4bd310 100644 --- a/src/Proto.Persistence.Marten/Proto.Persistence.Marten.csproj +++ b/src/Proto.Persistence.Marten/Proto.Persistence.Marten.csproj @@ -8,6 +8,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Persistence.MongoDB/Proto.Persistence.MongoDB.csproj b/src/Proto.Persistence.MongoDB/Proto.Persistence.MongoDB.csproj index f8c9fbedbe..60e1713813 100644 --- a/src/Proto.Persistence.MongoDB/Proto.Persistence.MongoDB.csproj +++ b/src/Proto.Persistence.MongoDB/Proto.Persistence.MongoDB.csproj @@ -8,6 +8,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Persistence.RavenDB/Proto.Persistence.RavenDB.csproj b/src/Proto.Persistence.RavenDB/Proto.Persistence.RavenDB.csproj index cb9a68a426..674eac19bd 100644 --- a/src/Proto.Persistence.RavenDB/Proto.Persistence.RavenDB.csproj +++ b/src/Proto.Persistence.RavenDB/Proto.Persistence.RavenDB.csproj @@ -8,6 +8,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Persistence.SqlServer/Proto.Persistence.SqlServer.csproj b/src/Proto.Persistence.SqlServer/Proto.Persistence.SqlServer.csproj index 3d7e03e238..9124fc6922 100644 --- a/src/Proto.Persistence.SqlServer/Proto.Persistence.SqlServer.csproj +++ b/src/Proto.Persistence.SqlServer/Proto.Persistence.SqlServer.csproj @@ -9,6 +9,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Persistence.Sqlite/Proto.Persistence.Sqlite.csproj b/src/Proto.Persistence.Sqlite/Proto.Persistence.Sqlite.csproj index 6d59254156..f59fd86228 100644 --- a/src/Proto.Persistence.Sqlite/Proto.Persistence.Sqlite.csproj +++ b/src/Proto.Persistence.Sqlite/Proto.Persistence.Sqlite.csproj @@ -9,6 +9,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Persistence/Proto.Persistence.csproj b/src/Proto.Persistence/Proto.Persistence.csproj index cf325fb6aa..0158b9ec6c 100644 --- a/src/Proto.Persistence/Proto.Persistence.csproj +++ b/src/Proto.Persistence/Proto.Persistence.csproj @@ -10,5 +10,6 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + \ No newline at end of file diff --git a/src/Proto.Remote.GrpcCore/Proto.Remote.GrpcCore.csproj b/src/Proto.Remote.GrpcCore/Proto.Remote.GrpcCore.csproj index 0ef079e2c5..c7f2cf38f2 100644 --- a/src/Proto.Remote.GrpcCore/Proto.Remote.GrpcCore.csproj +++ b/src/Proto.Remote.GrpcCore/Proto.Remote.GrpcCore.csproj @@ -15,6 +15,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Remote.GrpcNet/Proto.Remote.GrpcNet.csproj b/src/Proto.Remote.GrpcNet/Proto.Remote.GrpcNet.csproj index e4470dad3a..9bb823c306 100644 --- a/src/Proto.Remote.GrpcNet/Proto.Remote.GrpcNet.csproj +++ b/src/Proto.Remote.GrpcNet/Proto.Remote.GrpcNet.csproj @@ -12,11 +12,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.Remote/Proto.Remote.csproj b/src/Proto.Remote/Proto.Remote.csproj index 4d41fab1af..45adf1d6a9 100644 --- a/src/Proto.Remote/Proto.Remote.csproj +++ b/src/Proto.Remote/Proto.Remote.csproj @@ -6,7 +6,7 @@ net5.0;net6.0;netstandard2.1 - + @@ -14,6 +14,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Proto.TestKit/Proto.TestKit.csproj b/src/Proto.TestKit/Proto.TestKit.csproj index 8d8ef9e68a..206f3892d1 100644 --- a/src/Proto.TestKit/Proto.TestKit.csproj +++ b/src/Proto.TestKit/Proto.TestKit.csproj @@ -9,4 +9,8 @@ + + + + \ No newline at end of file diff --git a/tests/Proto.Actor.Tests/DeadLetterResponseTests.cs b/tests/Proto.Actor.Tests/DeadLetterResponseTests.cs index 29064ba3ec..4fe74ca5fb 100644 --- a/tests/Proto.Actor.Tests/DeadLetterResponseTests.cs +++ b/tests/Proto.Actor.Tests/DeadLetterResponseTests.cs @@ -26,8 +26,8 @@ public async Task ThrowsDeadLetterException() response.Should().Be(message); await context.PoisonAsync(echoPid); - context.Invoking(c => c.RequestAsync(echoPid, message)).Should() - .ThrowExactly(); + await context.Invoking(c => c.RequestAsync(echoPid, message)).Should() + .ThrowExactlyAsync(); } [Fact] diff --git a/tests/Proto.Actor.Tests/Futures/BaseFutureTests.cs b/tests/Proto.Actor.Tests/Futures/BaseFutureTests.cs index 388d5141aa..4f63d2d73f 100644 --- a/tests/Proto.Actor.Tests/Futures/BaseFutureTests.cs +++ b/tests/Proto.Actor.Tests/Futures/BaseFutureTests.cs @@ -80,7 +80,7 @@ public async Task Futures_should_map_to_correct_response() } [Fact] - public void Timeouts_should_give_timeout_exception() + public async Task Timeouts_should_give_timeout_exception() { var pid = Context.Spawn(Props.FromFunc(async ctx => { if (ctx.Sender is not null) @@ -102,13 +102,13 @@ public void Timeouts_should_give_timeout_exception() Context.Request(pid, i, future.Pid); } - futures.Invoking(async f => { + await futures.Invoking(async f => { using var cts = new CancellationTokenSource(50); // ReSharper disable once AccessToDisposedClosure var tasks = f.Select(future => future.GetTask(cts.Token)); return await Task.WhenAll(tasks); } - ).Should().Throw(); + ).Should().ThrowAsync(); } } } \ No newline at end of file diff --git a/tests/Proto.Actor.Tests/Futures/BatchFutureTests.cs b/tests/Proto.Actor.Tests/Futures/BatchFutureTests.cs index 0e51d79edf..f3ae33499b 100644 --- a/tests/Proto.Actor.Tests/Futures/BatchFutureTests.cs +++ b/tests/Proto.Actor.Tests/Futures/BatchFutureTests.cs @@ -75,7 +75,7 @@ public async Task Futures_should_map_to_correct_response() } [Fact] - public void Timeouts_should_give_timeout_exception() + public async Task Timeouts_should_give_timeout_exception() { var pid = Context.Spawn(Props.FromFunc(async ctx => { if (ctx.Sender is not null) @@ -99,8 +99,8 @@ public void Timeouts_should_give_timeout_exception() Context.Request(pid, i, future.Pid); } - futures.Invoking(async f => { await Task.WhenAll(f.Select(future => future.Task)); } - ).Should().Throw(); + await futures.Invoking(async f => { await Task.WhenAll(f.Select(future => future.Task)); } + ).Should().ThrowAsync(); } [Fact] diff --git a/tests/Proto.Actor.Tests/PoisonTests.cs b/tests/Proto.Actor.Tests/PoisonTests.cs index c8b136e766..faa31e20a1 100644 --- a/tests/Proto.Actor.Tests/PoisonTests.cs +++ b/tests/Proto.Actor.Tests/PoisonTests.cs @@ -48,7 +48,7 @@ public async Task PoisonTerminatesActor() completed.Should().BeTrue("Or we did not get a response when poisoning a live pid"); - system.Root.Invoking(ctx => ctx.RequestAsync(pid, message)).Should().ThrowExactly(); + await system.Root.Invoking(ctx => ctx.RequestAsync(pid, message)).Should().ThrowExactlyAsync(); } } } \ No newline at end of file diff --git a/tests/Proto.Actor.Tests/Proto.Actor.Tests.csproj b/tests/Proto.Actor.Tests/Proto.Actor.Tests.csproj index 5bdfa5f33e..1fa0f8b51c 100644 --- a/tests/Proto.Actor.Tests/Proto.Actor.Tests.csproj +++ b/tests/Proto.Actor.Tests/Proto.Actor.Tests.csproj @@ -7,14 +7,15 @@ enable - - + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive + \ No newline at end of file diff --git a/tests/Proto.Actor.Tests/ReenterTests.cs b/tests/Proto.Actor.Tests/ReenterTests.cs index 997455a20d..4d3d8ea4d6 100644 --- a/tests/Proto.Actor.Tests/ReenterTests.cs +++ b/tests/Proto.Actor.Tests/ReenterTests.cs @@ -90,7 +90,7 @@ public async Task ReenterAfterAlreadyCancelledToken() } [Fact] - public void NoReenterAfterNonCancellableToken() + public async Task NoReenterAfterNonCancellableToken() { var props = Props.FromProducer(() => new ReenterAfterCancellationActor()); @@ -98,10 +98,10 @@ public void NoReenterAfterNonCancellableToken() var request = new ReenterAfterCancellationActor.Request(CancellationToken.None); - Context.Invoking(async ctx + await Context.Invoking(async ctx => await Context.RequestAsync(pid, request, TimeSpan.FromMilliseconds(500)) ).Should() - .ThrowExactly(); + .ThrowExactlyAsync(); } [Fact] diff --git a/tests/Proto.Cluster.CodeGen.Tests/Proto.Cluster.CodeGen.Tests.csproj b/tests/Proto.Cluster.CodeGen.Tests/Proto.Cluster.CodeGen.Tests.csproj index e009039a59..b31fd5d3b1 100644 --- a/tests/Proto.Cluster.CodeGen.Tests/Proto.Cluster.CodeGen.Tests.csproj +++ b/tests/Proto.Cluster.CodeGen.Tests/Proto.Cluster.CodeGen.Tests.csproj @@ -14,6 +14,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Proto.Cluster.Identity.Tests/IdentityStorageTests.cs b/tests/Proto.Cluster.Identity.Tests/IdentityStorageTests.cs index 2fe3360353..14209719f2 100644 --- a/tests/Proto.Cluster.Identity.Tests/IdentityStorageTests.cs +++ b/tests/Proto.Cluster.Identity.Tests/IdentityStorageTests.cs @@ -139,13 +139,13 @@ public async Task CannotStoreOverExisting() var otherPid = Activate(activator, identity); - _storage.Invoking(storage => + await _storage.Invoking(storage => storage.StoreActivation(activator.Id, new SpawnLock("someLockId", identity), otherPid, timeout) - ).Should().Throw(); + ).Should().ThrowAsync(); } [Fact] - public void CannotStoreWithoutLock() + public async Task CannotStoreWithoutLock() { var timeout = new CancellationTokenSource(TimeoutMs).Token; var activator = GetFakeActivator(); @@ -153,9 +153,9 @@ public void CannotStoreWithoutLock() var spawnLock = new SpawnLock("not-a-lock", identity); var pid = Activate(activator, identity); - _storage.Invoking(storage => + await _storage.Invoking(storage => storage.StoreActivation(activator.Id, spawnLock, pid, timeout) - ).Should().Throw(); + ).Should().ThrowAsync(); } [Fact] diff --git a/tests/Proto.Cluster.Identity.Tests/Proto.Cluster.Identity.Tests.csproj b/tests/Proto.Cluster.Identity.Tests/Proto.Cluster.Identity.Tests.csproj index 8d7a73dc05..ff70e91b9d 100644 --- a/tests/Proto.Cluster.Identity.Tests/Proto.Cluster.Identity.Tests.csproj +++ b/tests/Proto.Cluster.Identity.Tests/Proto.Cluster.Identity.Tests.csproj @@ -19,6 +19,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Proto.Cluster.MongoIdentity.Tests/Proto.Cluster.MongoIdentity.Tests.csproj b/tests/Proto.Cluster.MongoIdentity.Tests/Proto.Cluster.MongoIdentity.Tests.csproj index 595781635f..7d5dfb989f 100644 --- a/tests/Proto.Cluster.MongoIdentity.Tests/Proto.Cluster.MongoIdentity.Tests.csproj +++ b/tests/Proto.Cluster.MongoIdentity.Tests/Proto.Cluster.MongoIdentity.Tests.csproj @@ -20,6 +20,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Proto.Cluster.PartitionIdentity.Tests/Proto.Cluster.PartitionIdentity.Tests.csproj b/tests/Proto.Cluster.PartitionIdentity.Tests/Proto.Cluster.PartitionIdentity.Tests.csproj index 12de7a0446..f32b1da458 100644 --- a/tests/Proto.Cluster.PartitionIdentity.Tests/Proto.Cluster.PartitionIdentity.Tests.csproj +++ b/tests/Proto.Cluster.PartitionIdentity.Tests/Proto.Cluster.PartitionIdentity.Tests.csproj @@ -14,10 +14,11 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all + diff --git a/tests/Proto.Cluster.RedisIdentity.Tests/Proto.Cluster.RedisIdentity.Tests.csproj b/tests/Proto.Cluster.RedisIdentity.Tests/Proto.Cluster.RedisIdentity.Tests.csproj index 595781635f..7d5dfb989f 100644 --- a/tests/Proto.Cluster.RedisIdentity.Tests/Proto.Cluster.RedisIdentity.Tests.csproj +++ b/tests/Proto.Cluster.RedisIdentity.Tests/Proto.Cluster.RedisIdentity.Tests.csproj @@ -20,6 +20,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Proto.Cluster.Tests/ClusterFixture.cs b/tests/Proto.Cluster.Tests/ClusterFixture.cs index 02f87b317a..af97f82230 100644 --- a/tests/Proto.Cluster.Tests/ClusterFixture.cs +++ b/tests/Proto.Cluster.Tests/ClusterFixture.cs @@ -165,7 +165,7 @@ protected virtual ActorSystemConfig GetActorSystemConfig() protected abstract IClusterProvider GetClusterProvider(); protected virtual IIdentityLookup GetIdentityLookup(string clusterName) => new PartitionIdentityLookup(TimeSpan.FromSeconds(3), - TimeSpan.FromSeconds(2), new PartitionConfig(false, 1000, TimeSpan.FromSeconds(1), PartitionIdentityLookup.Mode.Push) + TimeSpan.FromSeconds(2), new PartitionConfig(false, 1000, TimeSpan.FromSeconds(1), PartitionIdentityLookup.Mode.Pull) ); async ValueTask IAsyncDisposable.DisposeAsync() => await DisposeAsync(); diff --git a/tests/Proto.Cluster.Tests/PidCacheInvalidationTests.cs b/tests/Proto.Cluster.Tests/PidCacheInvalidationTests.cs index a3e1707b14..2739494428 100644 --- a/tests/Proto.Cluster.Tests/PidCacheInvalidationTests.cs +++ b/tests/Proto.Cluster.Tests/PidCacheInvalidationTests.cs @@ -32,7 +32,7 @@ public async Task PidCacheInvalidatesCorrectly() cachedPid.Should().NotBeNull(); await remoteMember.RequestAsync(id, EchoActor.Kind, new Die(), CancellationToken.None); - await Task.Delay(1000); // PidCache is asynchronously cleared, allow the system to purge it + await Task.Delay(2000); // PidCache is asynchronously cleared, allow the system to purge it var cachedPidAfterStopping = GetFromPidCache(remoteMember, id); diff --git a/tests/Proto.Cluster.Tests/Proto.Cluster.Tests.csproj b/tests/Proto.Cluster.Tests/Proto.Cluster.Tests.csproj index 10ee059aa5..a93c54f28e 100644 --- a/tests/Proto.Cluster.Tests/Proto.Cluster.Tests.csproj +++ b/tests/Proto.Cluster.Tests/Proto.Cluster.Tests.csproj @@ -21,7 +21,8 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + + diff --git a/tests/Proto.OpenTelemetry.Tests/Proto.OpenTelemetry.Tests.csproj b/tests/Proto.OpenTelemetry.Tests/Proto.OpenTelemetry.Tests.csproj index bd9b7920e1..bcc17b1205 100644 --- a/tests/Proto.OpenTelemetry.Tests/Proto.OpenTelemetry.Tests.csproj +++ b/tests/Proto.OpenTelemetry.Tests/Proto.OpenTelemetry.Tests.csproj @@ -19,10 +19,11 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all + diff --git a/tests/Proto.Persistence.Tests/Proto.Persistence.Tests.csproj b/tests/Proto.Persistence.Tests/Proto.Persistence.Tests.csproj index 5050eeb159..9c9e2907da 100644 --- a/tests/Proto.Persistence.Tests/Proto.Persistence.Tests.csproj +++ b/tests/Proto.Persistence.Tests/Proto.Persistence.Tests.csproj @@ -10,6 +10,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Proto.Remote.Tests/Proto.Remote.Tests.csproj b/tests/Proto.Remote.Tests/Proto.Remote.Tests.csproj index fb29ea73eb..850e5e639a 100644 --- a/tests/Proto.Remote.Tests/Proto.Remote.Tests.csproj +++ b/tests/Proto.Remote.Tests/Proto.Remote.Tests.csproj @@ -10,6 +10,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Proto.TestFixtures/Proto.TestFixtures.csproj b/tests/Proto.TestFixtures/Proto.TestFixtures.csproj index fe256b0d51..b80b1028a0 100644 --- a/tests/Proto.TestFixtures/Proto.TestFixtures.csproj +++ b/tests/Proto.TestFixtures/Proto.TestFixtures.csproj @@ -11,10 +11,10 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive