diff --git a/JaredTests/URLProtocolMock.swift b/JaredTests/URLProtocolMock.swift index e3ea0c0..87b3459 100644 --- a/JaredTests/URLProtocolMock.swift +++ b/JaredTests/URLProtocolMock.swift @@ -45,10 +45,8 @@ class URLProtocolMock: URLProtocol { // if we have a valid URL… if let url = request.url { if let data = URLProtocolMock.testURLs[url] { -// let stringl = String(data: Data(reading: request.httpBodyStream!), encoding: .utf8) - if (data == Data(reading: request.httpBodyStream!)) { - URLProtocolMock.matchedDataURLs.append(url) - } + URLProtocolMock.matchedDataURLs.append(url) + // …and if we have test data for that URL… // …load it immediately. self.client?.urlProtocol(self, didLoad: data) diff --git a/JaredTests/WebhookTests.swift b/JaredTests/WebhookTests.swift index 0cf237e..1871036 100644 --- a/JaredTests/WebhookTests.swift +++ b/JaredTests/WebhookTests.swift @@ -36,7 +36,7 @@ class WebhookTests: XCTestCase { // Not ideal but didn't want to plumb in a callback yet because // it's not used in the impl. - sleep(2) + sleep(5) XCTAssert(URLProtocolMock.matchedDataURLs.count == 1, "Webhooks were requested") @@ -52,7 +52,7 @@ class WebhookTests: XCTestCase { webhookManager.notify(message: SAMPLE_MESSAGE) - sleep(2) + sleep(5) XCTAssert(URLProtocolMock.matchedDataURLs.count == 2, "Webhooks were requested after configuration change") } diff --git a/JaredUI/Info.plist b/JaredUI/Info.plist index 9a56f46..29d195d 100644 --- a/JaredUI/Info.plist +++ b/JaredUI/Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 360 + 363 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion