diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 2f494eca..f8a9de04 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -37,6 +37,8 @@ IMMEDIATE ITEMS: - SEEDER - Is generating non-unique names causing crash due to validation error. Add uniqufication code, maybe just a serial number - PAINFULLY slow to generate widgets, the db ops are taking orders of magnitude too long, can any db steps be saved?? + - Is it an issue if it keeps on working slowly in the background?? + - Maybe do it in chunks at a time so that it will properly interleave with other types of data so there is some of everything all at once and slowly adds more - BUG BUG: 2018-09-26 16:47:34.3677|INFO|Seeder|Seeding 100 user(s) 2018-09-26 16:47:34.4053|INFO|Seeder|Seeding 100 user(s) 2018-09-26 16:47:34.4468|INFO|Seeder|Seeding 20000 Widget(s) diff --git a/test/raven-integration/EventLog/EventLog.cs b/test/raven-integration/EventLog/EventLog.cs index a680260d..6786820c 100644 --- a/test/raven-integration/EventLog/EventLog.cs +++ b/test/raven-integration/EventLog/EventLog.cs @@ -37,8 +37,12 @@ namespace raven_integration ApiResponse EventLogResponse = await Util.GetAsync($"EventLog/ObjectLog?AyType=2&AyId={w2Id}", await Util.GetTokenAsync("BizAdminFull")); Util.ValidateHTTPStatusCode(EventLogResponse, 200); - ((JArray)EventLogResponse.ObjectResponse["result"]).Count.Should().Be(1);//only one event so far - EventLogResponse.ObjectResponse["result"][0]["date"].Value().Should().BeLessThan(new TimeSpan(1, 0, 0)).Before(DateTime.UtcNow);//should be less than one hour before now + + TODO: failing here, for no reason that makes any sense it thinks there are two created events by two users for the same widget. + + + ((JArray)EventLogResponse.ObjectResponse["result"]).Count.Should().Be(1);//only one event so far + EventLogResponse.ObjectResponse["result"][0]["date"].Value().Should().BeLessThan(new TimeSpan(1, 0, 0)).Before(DateTime.UtcNow);//should be less than one hour before now EventLogResponse.ObjectResponse["result"][0]["userId"].Should().NotBeNull(); EventLogResponse.ObjectResponse["result"][0]["event"].Value().Should().Be(1);//AyEvent 1 = created EventLogResponse.ObjectResponse["result"][0]["textra"].Should().BeNullOrEmpty();