Skip to content
Open
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
4 changes: 3 additions & 1 deletion lib/unittest.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -647,14 +647,15 @@ def _loading_make(name):
)
return struct(name = name)

def _loading_assert_equals(env, test_case, expected, actual):
def _loading_assert_equals(env, test_case, expected, actual, timeout = "short"):
"""Creates a test case for asserting state at LOADING phase.

Args:
env: Loading test env created from loadingtest.make
test_case: Name of the test case
expected: Expected value to test
actual: Actual value received.
timeout: Test timeout passed into the generated rule.

Returns:
None, creates test case
Expand All @@ -668,6 +669,7 @@ def _loading_assert_equals(env, test_case, expected, actual):
name = "%s_%s" % (env.name, test_case),
failure_message = msg,
tags = [env.name + "_test_case"],
timeout = timeout,
)

asserts = struct(
Expand Down