Skip to content

Conversation

@maraf
Copy link
Member

@maraf maraf commented Dec 20, 2021

Before this change, the test would fail when current milliseconds are 0.

  • RowFilter has only seconds, as it is a string.
  • DateTime in rows have also fractions of second.
  • Condition in the RowFilter have equality on both ends (>= and <=).
  • When current milliseconds are 0, the RowFilter matches 1 extra row.

Example RowFilter

StartDate >= #12/22/2021 17:25:42# and StartDate <= #12/24/2021 17:25:42#

I have added an explicit 1 minute to the tested datetime so the fractions of second don't play a role.

Fixes #62965.

@maraf maraf added this to the 7.0.0 milestone Dec 20, 2021
@ghost ghost added the area-System.Data label Dec 20, 2021
@ghost ghost assigned maraf Dec 20, 2021
@ghost
Copy link

ghost commented Dec 20, 2021

Tagging subscribers to this area: @roji, @ajcvickers
See info in area-owners.md if you want to be subscribed.

Issue Details

Before this change, the test would fail when current milliseconds are 0.

  • RowFilter has only seconds, as it is a string.
  • DateTime in rows have also fractions of second.
  • Condition in the RowFilter have equality on both ends (>= and <=).
  • When current milliseconds are 0, the RowFilter matches 1 extra row.

Example RowFilter

StartDate >= #12/22/2021 17:25:42# and StartDate <= #12/24/2021 17:25:42#

I have added an explicit 1 minute to the tested datetime so the fractions of second don't play a role.

Fixes #62898.

Author: maraf
Assignees: -
Labels:

area-System.Data

Milestone: 7.0.0

@maraf
Copy link
Member Author

maraf commented Dec 20, 2021

/azp run runtime-manual

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@maraf
Copy link
Member Author

maraf commented Dec 20, 2021

@stephentoub I have found in the blame that you imported the code to this repository. The test method mentions a bug "55978" which I'm not able to track down. Do you have some idea what it could or whether the millisecond behavior in the test was intended?

@maraf maraf merged commit b9d8d84 into dotnet:main Jan 12, 2022
@maraf maraf deleted the WasmFixTestBug55978OnNodeJs branch January 12, 2022 08:39
@ghost ghost locked as resolved and limited conversation to collaborators Feb 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.Data.Tests.AppDomainsAndFormatInfo.Bug55978 test failed

2 participants