Skip to content

Commit

Permalink
chore: fixup test sizes to resolve warnings (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Aug 19, 2024
1 parent eb55a3c commit 62b2fd0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
3 changes: 2 additions & 1 deletion lib/tests/base64_tests.bzl
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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"),
)
17 changes: 9 additions & 8 deletions lib/tests/lists_test.bzl
Original file line number Diff line number Diff line change
@@ -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")

Expand Down Expand Up @@ -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"),
)
7 changes: 4 additions & 3 deletions lib/tests/strings_tests.bzl
Original file line number Diff line number Diff line change
@@ -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")

Expand Down Expand Up @@ -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"),
)

0 comments on commit 62b2fd0

Please sign in to comment.