Restore the configured disclosure map after settlement tests

013e54dc8b0e · Devin AI · · parent 6fb4d010a502

Restore the configured disclosure map after settlement tests

Co-Authored-By: Christopher David <chris@openagents.com>
Co-Authored-By
Christopher David <chris@openagents.com>

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

Not deployed through the forge lane

No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.

Changed files

  • modified test/openagents/settlement_test.exs

Diff

1 file changed, +5 -1

test/openagents/settlement_test.exs modified +5 -1

@@ -43,6 +43,7 @@ defmodule OpenAgents.SettlementTest do

43 43
44 44
  setup do
45 45
    counter = start_supervised!({Agent, fn -> %{} end})
46
    configured_visibility = Application.get_env(:openagents, :forge_public_visibility)
46 47
    Application.put_env(:openagents, :settlement_payment_gateway, Gateway)
47 48
    Application.put_env(:openagents, :settlement_test_calls, counter)
48 49
    answer_with(&settles/2)

@@ -54,7 +55,10 @@ defmodule OpenAgents.SettlementTest do

54 55
      Application.delete_env(:openagents, :settlement_payment_gateway)
55 56
      Application.delete_env(:openagents, :settlement_test_calls)
56 57
      Application.delete_env(:openagents, :settlement_test_answers)
57
      Application.delete_env(:openagents, :forge_public_visibility)
58
59
      if configured_visibility,
60
        do: Application.put_env(:openagents, :forge_public_visibility, configured_visibility),
61
        else: Application.delete_env(:openagents, :forge_public_visibility)
58 62
    end)
59 63
60 64
    %{repository: repository, issue: issue}

This page updates live while a promote is in flight · changelog