From 72b3ec35f898b5eb2e69affee9c9569a8c2e0a0a Mon Sep 17 00:00:00 2001 From: Lain Soykaf Date: Tue, 3 Jan 2023 14:59:14 -0500 Subject: 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. --- test/test_helper.exs | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test_helper.exs') 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 # 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) -- cgit v1.2.3