diff --git a/test/DotNetCore.CAP.Test/CAP.BuilderTest.cs b/test/DotNetCore.CAP.Test/CAP.BuilderTest.cs index f21a4f0..8bcbb3c 100644 --- a/test/DotNetCore.CAP.Test/CAP.BuilderTest.cs +++ b/test/DotNetCore.CAP.Test/CAP.BuilderTest.cs @@ -39,19 +39,6 @@ namespace DotNetCore.CAP.Test Assert.NotNull(markService); } - [Fact] - public void CanOverridePublishService() - { - var services = new ServiceCollection(); - services.AddCap(x => { }).AddProducerService(); - - var thingy = services.BuildServiceProvider() - .GetRequiredService() as MyProducerService; - - Assert.NotNull(thingy); - } - - [Fact] public void CanResolveCapOptions() {