Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This PR adds read/write tests to check functionality on the read/write backens. #887

Merged
merged 4 commits into from
Apr 12, 2019

Conversation

parsonsmatt
Copy link
Collaborator

@parsonsmatt parsonsmatt commented Apr 12, 2019

Before submitting your PR, check that you've:

After submitting your PR:

  • Update the Changelog.md file with a link to your PR
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts)

@@ -170,6 +171,7 @@ main = do
>> runMigrationSilent MigrationOnlyTest.migrateAll2
)
PersistentTest.specsWith db
ReadWriteTest.specsWith db
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... it would probably be nice for PersistentTest to export two functions like allBackendsMustPass and sqlBackendsMustPass that these other ones can reuse rather than copying the definition everywhere

, SqlReadBackend (unSqlReadBackend)
, SqlWriteBackend (unSqlWriteBackend)
, SqlReadBackend (..)
, SqlWriteBackend (..)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea why the constructors were hidden. Presumably you were only supposed to use the IsSqlBackend instance, but that lets you construct them, so 🤷‍♂️

@parsonsmatt parsonsmatt merged commit d19200b into master Apr 12, 2019
@parsonsmatt parsonsmatt deleted the matt/add-read-write-tests branch April 12, 2019 19:20
@parsonsmatt parsonsmatt mentioned this pull request Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant