diff --git a/test/AElf.Contracts.TestContract.Tests/TestContractAElfModule.cs b/test/AElf.Contracts.TestContract.Tests/TestContractAElfModule.cs index 7c98a8afb5..c5613eb9dc 100644 --- a/test/AElf.Contracts.TestContract.Tests/TestContractAElfModule.cs +++ b/test/AElf.Contracts.TestContract.Tests/TestContractAElfModule.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using AElf.ContractTestKit; using AElf.CSharp.CodeOps; +using AElf.Kernel.Blockchain.Application; using AElf.Kernel.FeeCalculation; using AElf.Kernel.FeeCalculation.Application; using AElf.Kernel.FeeCalculation.Infrastructure; @@ -9,6 +10,7 @@ using AElf.Kernel.SmartContract.ExecutionPluginForMethodFee; using AElf.Kernel.SmartContract.ExecutionPluginForResourceFee; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection.Extensions; using Volo.Abp.Modularity; namespace AElf.Contract.TestContract @@ -20,6 +22,7 @@ public class TestContractAElfModule : ContractTestModule public override void ConfigureServices(ServiceConfigurationContext context) { Configure(o => o.ContractDeploymentAuthorityRequired = false); + context.Services.RemoveAll(); } }