updating clear_config
[akkoma] / test / http / adapter_helper / gun_test.exs
index 18025b98676acd113408cdbf2e29ccb6557b71e3..2e961826ede9fb72fdbb05be211799b70c77d79b 100644 (file)
@@ -28,9 +28,7 @@ defmodule Pleroma.HTTP.AdapterHelper.GunTest do
   end
 
   describe "options/1" do
-    clear_config([:http, :adapter]) do
-      Config.put([:http, :adapter], a: 1, b: 2)
-    end
+    setup do: clear_config([:http, :adapter], a: 1, b: 2)
 
     test "https url with default port" do
       uri = URI.parse("https://example.com")