diff options
author | Lain Soykaf <lain@lain.com> | 2023-01-03 14:59:14 -0500 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-01-03 14:59:14 -0500 |
commit | 72b3ec35f898b5eb2e69affee9c9569a8c2e0a0a (patch) | |
tree | 9c057c60e2139c1bd5d20b0edafae3bd5e6861b9 /test/test_helper.exs | |
parent | a0cdc4cf9e6ff7857bc8a9dce029cf5103be9831 (diff) | |
download | pleroma-72b3ec35f898b5eb2e69affee9c9569a8c2e0a0a.tar.gz pleroma-72b3ec35f898b5eb2e69affee9c9569a8c2e0a0a.zip |
Fix warnings in tests, treat warnings as errors in CI.
The warnings revealed two bad tests, the code still worked but the test
didn't actually test for it. Activating this for CI to prevent issues
like these in the future.
Diffstat (limited to 'test/test_helper.exs')
-rw-r--r-- | test/test_helper.exs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_helper.exs b/test/test_helper.exs index 60a61484f..046517b28 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1,6 +1,7 @@ # Pleroma: A lightweight social networking server # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/> # SPDX-License-Identifier: AGPL-3.0-only +Code.put_compiler_option(:warnings_as_errors, true) os_exclude = if :os.type() == {:unix, :darwin}, do: [skip_on_mac: true], else: [] ExUnit.start(exclude: [:federated, :erratic] ++ os_exclude) |