Skip to content

Error during live tests (AZSQL): CreateAsync_CreatedNewEntity_WithNullId: Mismatched UpdatedAt #186

@adrianhall

Description

@adrianhall
  1. Run azd up to enable live tests
  2. Run tests

In AzureSqlEntityTableRepository_Tests / CreateAsync_CreatedNewEntity_WithNullId

Error is:

CommunityToolkit.Datasync.Server.EntityFrameworkCore.Test.AzureSqlEntityTableRepository_Tests.CreateAsync_CreatesNewEntity_WithNullId(id: null)
  No source available
   Duration: 1.9 sec

  Message: 
Expected actual.UpdatedAt to be after <2025-01-10 18:35:33.8887611 +0h>, but it was <2025-01-10 18:35:33.8466667 +0h>.

  Stack Trace: 
XUnit2TestFramework.Throw(String message)
TestFrameworkProvider.Throw(String message)
DefaultAssertionStrategy.HandleFailure(String message)
AssertionScope.FailWith(Func`1 failReasonFunc)
AssertionScope.FailWith(Func`1 failReasonFunc)
AssertionScope.FailWith(String message, Object[] args)
DateTimeOffsetAssertions`1.BeAfter(DateTimeOffset expected, String because, Object[] becauseArgs)
RepositoryTests`1.CreateAsync_CreatesNewEntity_WithNullId(String id) line 170
--- End of stack trace from previous location ---

Indicates that perhaps the time did not get properly updated?

Metadata

Metadata

Assignees

Labels

ServerImprovements or additions to the server code

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions