-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(allsrv): inject id generation fn
Motivation for this change: 1. we want determinism in tests, this allows for that 2. we don't want the db owning the business logic of what an ID looks like a) if we switch out dbs, each db has to make sure its ID gen aligns... youch Our tests are now fairly easy to follow. At this time, our `Server` is really the owner of the id gen business logic. This is ok for now, but for more complex scenarios, this can pose a serious problem.
- Loading branch information
Showing
2 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters