This commit is contained in:
2018-09-18 14:20:16 +00:00
parent ad2828b4c6
commit 39594f8de8

View File

@@ -8,13 +8,13 @@ using System.Collections.Concurrent;
namespace raven_integration namespace raven_integration
{ {
public class RequestedKeys public class RequestedLocaleKeys
{ {
[Fact] [Fact]
public async void RequestedKeysWorks() public async void RequestedLocaleKeysWorks()
{ {
//First determine if there is a requested key route because it's debug build dependent //First determine if there is a requested key route because it's debug build dependent
//And doesn't exists if server was not debug built //And doesn't exists if server was not debug built
@@ -41,11 +41,11 @@ namespace raven_integration
((JArray)a.ObjectResponse["result"]).Count.Should().Be(2); ((JArray)a.ObjectResponse["result"]).Count.Should().Be(2);
//Now ensure there are at least two keys in the fetched keys array //Now ensure there are at least two keys in the fetched keys array
a = await Util.PostAsync("Locale/RequestedKeyList", await Util.GetTokenAsync("ClientLimited"), d.ToString()); a = await Util.GetAsync("Locale/RequestedKeyList", await Util.GetTokenAsync("ClientLimited"));
Util.ValidateDataReturnResponseOk(a); Util.ValidateDataReturnResponseOk(a);
Util.ValidateHTTPStatusCode(a, 200); Util.ValidateHTTPStatusCode(a, 200);
//there should be dozens of keys but at times there might only be a few during development so at least verify there is more than one //there should be dozens of keys but at times there might only be a few during development so at least verify there is more than one
((JArray)a.ObjectResponse["result"]).Count.Should().Be(2); ((JArray)a.ObjectResponse["result"]).Count.Should().BeGreaterOrEqualTo(2);
} }
} }