Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matías García Isaía <mgarcia@manas.tech>
  • Loading branch information
ysbaddaden and matiasgarciaisaia authored Sep 5, 2023
1 parent 7a73ed0 commit d6492ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ask/runtime/channel_broker_state_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ defmodule Ask.Runtime.ChannelBrokerStateTest do
|> State.inactive?()
end

test "returns true if any pending contact", %{state: state} do
test "returns false if any pending contact", %{state: state} do
refute state
|> State.queue_contact(new_contact(2), 1)
|> State.inactive?()
end

test "returns true if any active contact", %{state: state} do
test "returns false if any active contact", %{state: state} do
refute state
|> State.queue_contact(new_contact(2), 1)
|> State.activate_next_in_queue()
Expand All @@ -46,7 +46,7 @@ defmodule Ask.Runtime.ChannelBrokerStateTest do
|> State.queued_or_active?(2)
end

test "returns false otherwise", %{state: state} do
test "returns false when empty", %{state: state} do
refute state
|> State.queued_or_active?(2)
end
Expand Down

0 comments on commit d6492ee

Please sign in to comment.