-
Notifications
You must be signed in to change notification settings - Fork 298
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
feat(testing): New testing feature to enable running both a acceptor and initiator in the same process. #684
base: main
Are you sure you want to change the base?
Conversation
… to back test in process
@ackleymi ... thoughts ? |
@ekovacs ? |
This has backwards compatibility, correct? Quite a lot of changes in here, but it certainly has a lot of benefits |
yup it does ... the functions in file provide the backwards compatibility also the existing "integration" tests should give some confidence in this too. |
@ackleymi ... can we get this merged sometime soon so I don't need to keep rebasing my fork ? |
@ackleymi, @michaelwilner .... is there a reason not to merge this ? |
This PR adds the ablity to have a registry per instance of initiator or acceptor and not have session conflicts.
The main purpose of this is to allow in process testing of both initiator and Acceptor.
There is an example test service_test which does the whole setup and routing between initiator and acceptor in the same process.
This would also allow the "integration" or service tests to run against eachother without the need for a deployed service or a docker image. Using this technique will require less resources for running tests and they will run a lot faster.