Skip to content

Commit

Permalink
put availability update in transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Sep 12, 2024
1 parent dd20101 commit 9b52844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/uplink/packages/instance/placement_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ defmodule Uplink.Packages.Instance.PlacementTest do
|> Plug.Conn.resp(200, cluster_members)
end)

Uplink.Cache.put({:available_nodes, placement_name}, [])

Uplink.Cache.transaction(
[keys: [{:available_nodes, placement_name}]],
fn ->
Uplink.Cache.put({:available_nodes, placement_name}, [])

assert {:ok, %Placement{}} = Placement.find(node_name, "spread")
end
)
Expand Down

0 comments on commit 9b52844

Please sign in to comment.