Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
5f776ac9
Commit
5f776ac9
authored
Aug 16, 2018
by
Jose Blaya
Browse files
Unit test to check we receive the result in the callback.
parent
339c56c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIALibraryTests/AccountTests.swift
View file @
5f776ac9
...
...
@@ -51,6 +51,19 @@ class AccountTests: XCTestCase {
__testLogout
(
factory
:
mock
)
}
func
testAPIEndpointIsReachable
()
{
let
expectationAPIEndpoint
=
expectation
(
description
:
"apiEndpoint"
)
mock
.
accountProvider
.
isAPIEndpointAvailable
{
(
result
,
error
)
in
XCTAssertTrue
(
result
!
,
"The default API endpoint should be reachable from the tests"
)
expectationAPIEndpoint
.
fulfill
()
}
waitForExpectations
(
timeout
:
5.0
,
handler
:
nil
)
}
/*func testWeb() {
__testLogin(factory: live)
sleep(1)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment