Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SnackBar] Increase unit test timeout #2750

Merged
merged 1 commit into from
Dec 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[SnackBar] Increase unit test timeout
Swift tests running unit tests can sometimes take longer. Increasing the
timeout for the expectation.
  • Loading branch information
Rob Moore committed Dec 20, 2017
commit 02a4da3b0db6f3882e89d40b96605397f0929edf
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ class SnackbarManagerSwiftTests: XCTestCase {
MDCSnackbarManager.show(suspendedMessage)
token = nil

// When
// When
XCTAssertNil(token, "Ensuring that the compiler knows we're reading this variable")
}

// Then
self.waitForExpectations(timeout: 1.0, handler: nil)
// Swift unit tests are sometimes slower, need to wait a little longer
self.waitForExpectations(timeout: 3.0, handler: nil)
}

}