parse-community / Parse-Swift

The Swift SDK for Parse Platform (iOS, macOS, watchOS, tvOS, Linux, Android, Windows)
https://parseplatform.org
MIT License
306 stars 69 forks source link

test: improve localhost connections #336

Closed cbaker6 closed 2 years ago

cbaker6 commented 2 years ago

New Pull Request Checklist

Issue Description

Arbitrary loads should only be enabled for localhost when testing.

Related issue: #n/a

Approach

Improve the way TestHost's connect to localhost during testing.

TODOs before merging

parse-github-assistant[bot] commented 2 years ago

Thanks for opening this pull request!

codecov[bot] commented 2 years ago

Codecov Report

Merging #336 (ddd8311) into main (879055b) will increase coverage by 0.09%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #336      +/-   ##
==========================================
+ Coverage   85.10%   85.20%   +0.09%     
==========================================
  Files         114      114              
  Lines       12208    12208              
==========================================
+ Hits        10390    10402      +12     
+ Misses       1818     1806      -12     
Impacted Files Coverage Δ
Sources/ParseSwift/Objects/ParseUser+async.swift 100.00% <ø> (ø)
Sources/ParseSwift/Objects/ParseUser+combine.swift 95.55% <ø> (ø)
Sources/ParseSwift/Objects/ParseUser.swift 83.18% <ø> (ø)
Sources/ParseSwift/Objects/ParseObject.swift 82.74% <0.00%> (+0.45%) :arrow_up:
Sources/ParseSwift/LiveQuery/ParseLiveQuery.swift 74.26% <0.00%> (+1.33%) :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 879055b...ddd8311. Read the comment docs.