From 4d21e0da9d0ca8d96234cd075d79dc7a57d28592 Mon Sep 17 00:00:00 2001 From: yiqi Date: Mon, 30 Aug 2021 17:23:03 +0800 Subject: [PATCH] Fix TestContractAElfModule --- .../TestContractAElfModule.cs | 3 +++ 1 file changed, 3 insertions(+) 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(); } }