Skip to content

Commit cf00db4

Browse files
committed
debug(travis-ci): add logging to debug travis ci
builds are failing in travis -- working fine locally
1 parent 7de22a1 commit cf00db4

File tree

1 file changed

+5
-1
lines changed
  • test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests

1 file changed

+5
-1
lines changed

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests/Meta.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using JsonApiDotNetCoreExampleTests.Startups;
1515
using JsonApiDotNetCoreExample.Models;
1616
using System.Collections;
17+
using System;
1718

1819
namespace JsonApiDotNetCoreExampleTests.Acceptance.Spec.DocumentTests
1920
{
@@ -32,6 +33,7 @@ public Meta(DocsFixture<Startup, JsonDocWriter> fixture)
3233
public async Task Total_Record_Count_Included()
3334
{
3435
// arrange
36+
_context.TodoItems.RemoveRange(_context.TodoItems);
3537
var expectedCount = _context.TodoItems.Count();
3638
var builder = new WebHostBuilder()
3739
.UseStartup<MetaStartup>();
@@ -45,7 +47,9 @@ public async Task Total_Record_Count_Included()
4547

4648
// act
4749
var response = await client.SendAsync(request);
48-
var documents = JsonConvert.DeserializeObject<Documents>(await response.Content.ReadAsStringAsync());
50+
var responseBody = await response.Content.ReadAsStringAsync();
51+
Console.WriteLine(responseBody);
52+
var documents = JsonConvert.DeserializeObject<Documents>(responseBody);
4953

5054
// assert
5155
Assert.Equal(HttpStatusCode.OK, response.StatusCode);

0 commit comments

Comments
 (0)