Skip to content

Commit

Permalink
Ensure availability is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Sep 12, 2024
1 parent 9fdc05b commit 8ee07d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 @@ -59,7 +61,7 @@ defmodule Uplink.Packages.Instance.PlacementTest do
|> Plug.Conn.resp(200, existing_instances)
end)

Bypass.stub(bypass, "GET", "/1.0/cluster/members", fn conn ->
Bypass.expect_once(bypass, "GET", "/1.0/cluster/members", fn conn ->
conn
|> Plug.Conn.put_resp_header("content-type", "application/json")
|> Plug.Conn.resp(200, cluster_members)
Expand Down

0 comments on commit 8ee07d6

Please sign in to comment.