Open codeOfRobin opened 5 years ago
Merging #115 into master will increase coverage by
0.02%
. The diff coverage is75%
.
@@ Coverage Diff @@
## master #115 +/- ##
==========================================
+ Coverage 92.73% 92.76% +0.02%
==========================================
Files 64 64
Lines 3110 3108 -2
==========================================
- Hits 2884 2883 -1
+ Misses 226 225 -1
Impacted Files | Coverage Ξ | |
---|---|---|
Sources/Networking.swift | 58.52% <75%> (+0.09%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update 3b9a852...234a5e7. Read the comment docs.
I think it would be better to keep both init methods, one with session configuration and one with session. What do you think?
That works too! Have the init with sessionConfiguration
generate a URLSession
in the init. Would you like me to add that to the PR?
Yes, please π
One problem now π, since both declarations look identical to the compiler,
the empty initializer confuses the compiler π
Any way you can think of to get around this? (also, need to fix that vertical_alignment thing that won't go away :/
It should work if you drop default parameter for session: URLSession
and create it like Networking(session: .shared)
when needed.
Done π
Great! Any idea why tests are failing?
@vadymmarkov I just tried running those tests locally. The test that failed on CI (NetworkingSpec.Networking___urlSession_didReceiveChallenge_completionHandler___with_NSURLAuthenticationMethodServerTrust__without_baseUrl__passess_valid_parameters_to_completion()
passed over here :/
Could you try running it locally on your computer to see if you can reproduce it?
Wait a second, I noticed the tests are running on Xcode 9.4. Could that be a cause?
Got a branch with an Xcode 10.1 image in the .travis.yml
: https://github.com/codeOfRobin/Malibu/tree/travis-new-image
Hi π @vadymmarkov gentle nudge, was hoping you could take a look at this π¬
Signed-off-by: Robin Malhotra me@rmalhotra.com