diff --git a/lib/tests/base64_tests.bzl b/lib/tests/base64_tests.bzl index dc827be..73b52c8 100644 --- a/lib/tests/base64_tests.bzl +++ b/lib/tests/base64_tests.bzl @@ -1,5 +1,6 @@ """unit tests for base64""" +load("@bazel_skylib//lib:partial.bzl", "partial") load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load("//lib/private:base64.bzl", "decode", "encode") load("//lib/private:strings.bzl", "INT_TO_CHAR") @@ -45,5 +46,5 @@ base64_test = unittest.make(_base64_test_impl) def base64_test_suite(): unittest.suite( "base64_tests", - base64_test, + partial.make(base64_test, timeout = "short"), ) diff --git a/lib/tests/lists_test.bzl b/lib/tests/lists_test.bzl index 82c86b2..234edb6 100644 --- a/lib/tests/lists_test.bzl +++ b/lib/tests/lists_test.bzl @@ -1,5 +1,6 @@ """unit tests for lists""" +load("@bazel_skylib//lib:partial.bzl", "partial") load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load("//lib/private:lists.bzl", "every", "filter", "find", "map", "once", "pick", "some", "unique") @@ -82,12 +83,12 @@ unique_test = unittest.make(_unique_test_impl) def lists_test_suite(): unittest.suite( "lists_tests", - every_test, - filter_test, - find_test, - map_test, - once_test, - pick_test, - some_test, - unique_test, + partial.make(every_test, timeout = "short"), + partial.make(filter_test, timeout = "short"), + partial.make(find_test, timeout = "short"), + partial.make(map_test, timeout = "short"), + partial.make(once_test, timeout = "short"), + partial.make(pick_test, timeout = "short"), + partial.make(some_test, timeout = "short"), + partial.make(unique_test, timeout = "short"), ) diff --git a/lib/tests/strings_tests.bzl b/lib/tests/strings_tests.bzl index 1bd339a..a156dde 100644 --- a/lib/tests/strings_tests.bzl +++ b/lib/tests/strings_tests.bzl @@ -1,5 +1,6 @@ """unit tests for string""" +load("@bazel_skylib//lib:partial.bzl", "partial") load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load("//lib/private:strings.bzl", "chr", "hex", "ord") @@ -58,7 +59,7 @@ hex_test = unittest.make(_hex_test_impl) def strings_test_suite(): unittest.suite( "strings_tests", - ord_test, - chr_test, - hex_test, + partial.make(ord_test, timeout = "short"), + partial.make(chr_test, timeout = "short"), + partial.make(hex_test, timeout = "short"), )