Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Make `BenchmarkTimestampable` care more about fractional-second parts. #406
Looks like PostgreSQL is now passing as expected! However, MySQL doesn't appear to be fetching the microseconds:
/root/fluent-mysql/Packages/Fluent/Sources/FluentBenchmark/BenchmarkTimestampable.swift:40: error: FluentMySQLTests.testTimestampable : failed - fetched createdAt timestamp 1520974866.0 is more than 2ms different from expected value 1520974866.09293
Edit: Looks like we need to use TIMESTAMP(fsp) when creating the schema to specify "fractional second precision"
My guess is we can just change the default