Replace URL for stubbedDataTask in FakeURLSession
Closed this issue · 1 comments
rbaumbach commented
stubbedDataTask = ...dataTask(with: URL(string: "https://whocares.com")!)
Rather than hit a real website, let's make this a really bad URL that will fail immediately.
https://8jnYY7-nope-not-working-jj009.codes
Ideally let's figure out if there is a way to by pass the resuming
of this data task immediately.
rbaumbach commented
It looks like Apple deprecated "init-ing" a dataTask. It looks like the easiest thing is to fail using a bad URL.