Skip to content

Commit

Permalink
Merge branch 'release/0.15.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Sep 12, 2024
2 parents dce86cb + e61d2e6 commit ced6213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Uplink.MixProject do
def project do
[
app: :uplink,
version: "0.15.4",
version: "0.15.5",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down
9 changes: 3 additions & 6 deletions test/uplink/packages/instance/placement_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ defmodule Uplink.Packages.Instance.PlacementTest do
} do
placement_name = Placement.name(node_name)

Uplink.Cache.delete({:available_nodes, placement_name})

Bypass.expect_once(bypass, "GET", "/1.0/instances", fn conn ->
assert %{"recursion" => "1", "all-projects" => _} = conn.query_params

Expand All @@ -67,12 +69,7 @@ defmodule Uplink.Packages.Instance.PlacementTest do

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

Uplink.Cache.transaction(
[keys: [{:available_nodes, placement_name}]],
fn ->
assert {:ok, %Placement{}} = Placement.find(node_name, "spread")
end
)
assert {:ok, %Placement{}} = Placement.find(node_name, "spread")
end
end
end

0 comments on commit ced6213

Please sign in to comment.