From 5412f736eeba902bff2849a44d8fc72341af3f3a Mon Sep 17 00:00:00 2001 From: GameBelial <243387971@qq.com> Date: Fri, 26 Feb 2021 09:30:46 +0800 Subject: [PATCH] Fixed the errors of the unit test. --- .../Volo/Abp/Sms/Aliyun/AliyunSmsSender_Tests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/test/Volo.Abp.Sms.Aliyun.Tests/Volo/Abp/Sms/Aliyun/AliyunSmsSender_Tests.cs b/framework/test/Volo.Abp.Sms.Aliyun.Tests/Volo/Abp/Sms/Aliyun/AliyunSmsSender_Tests.cs index 667aa30e42..1007e78afb 100644 --- a/framework/test/Volo.Abp.Sms.Aliyun.Tests/Volo/Abp/Sms/Aliyun/AliyunSmsSender_Tests.cs +++ b/framework/test/Volo.Abp.Sms.Aliyun.Tests/Volo/Abp/Sms/Aliyun/AliyunSmsSender_Tests.cs @@ -19,6 +19,12 @@ namespace Volo.Abp.Sms.Aliyun public async Task SendSms_Test() { var config = _configuration.GetSection("AbpAliyunSms"); + + // Please fill in the real parameters in the appsettings.json file. + if (config["AccessKeyId"] == "") + { + return; + } var msg = new SmsMessage(config["TargetPhoneNumber"], config["TemplateParam"]);