nickva opened a new pull request, #6098:
URL: https://github.com/apache/couchdb/pull/6098

   Since we have gun and it's proven its worth in nouveau let's use for tests 
as well. The bigger idea is to use for replication but let's make a smaller 
step first and see how it fares in unit and elixir tests.
   
   To help with unit tests created a simpler compatibility couch_gun module. It 
accepted some of the existing options and shapes of headers and auth parameters 
we already use everywhere. This helps avoid rewriting a whole lot of tests in 
one go. Dependency-wise we just have to ensure gun is started but otherwise 
it's already present there for nouveau so we don't need to bring anything new 
in, which is nice.
   
   Elixir tests used httpotion based on ibrowse. That client is deprecated we 
have been getting "httpotion is unmaintained" warnings for a while now (this 
was another reason to attempt this PR). Since httpotion was based on ibrowse we 
had to create a similar "helper" as for unit tests, just to handle some 
expected APIs from the callers. In many ways gun provides a nicer abstraction 
to streaming,  so we could also simplify some of the worker start/stop and 
direct or pid:once hacks. Dependency-wise we don't have to do anything gun and 
cowlib are already present we can just clean up httpotion and ibrowse from 
elixir deps.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to