test: 修复验证码请求三次单元测试

This commit is contained in:
Argo 2019-08-03 16:03:48 +08:00 committed by Argo Zhang
parent 9122133bb2
commit e24f3df018
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 4 deletions

View File

@ -1,7 +1,6 @@
using Longbow.Web;
using System;
using System.Collections.Generic;
using System.Reflection;
using Xunit;
namespace Bootstrap.Admin.Api.SqlServer
@ -27,10 +26,8 @@ namespace Bootstrap.Admin.Api.SqlServer
[Fact]
public async void Put_Ok()
{
var ret = await Client.PutAsJsonAsync<string, bool>("");
Assert.False(ret);
// 三次 Put 请求后返回真
var ret = await Client.PutAsJsonAsync<string, bool>("");
ret = await Client.PutAsJsonAsync<string, bool>("");
ret = await Client.PutAsJsonAsync<string, bool>("");
ret = await Client.PutAsJsonAsync<string, bool>("");