File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1744,6 +1744,7 @@ defmodule ExICE.Priv.ICEAgent do
1744
1744
conn_check_pair = % CandidatePair {
1745
1745
conn_check_pair
1746
1746
| state: :failed ,
1747
+ valid?: false ,
1747
1748
non_symmetric_responses_received: conn_check_pair . non_symmetric_responses_received + 1
1748
1749
}
1749
1750
@@ -1817,6 +1818,7 @@ defmodule ExICE.Priv.ICEAgent do
1817
1818
conn_check_pair = % CandidatePair {
1818
1819
conn_check_pair
1819
1820
| state: :failed ,
1821
+ valid?: false ,
1820
1822
responses_received: conn_check_pair . responses_received + 1
1821
1823
}
1822
1824
@@ -3014,7 +3016,8 @@ defmodule ExICE.Priv.ICEAgent do
3014
3016
pair
3015
3017
| packets_discarded_on_send: pair . packets_discarded_on_send + 1 ,
3016
3018
bytes_discarded_on_send: pair . bytes_discarded_on_send + byte_size ( raw_req ) ,
3017
- state: :failed
3019
+ state: :failed ,
3020
+ valid?: false
3018
3021
}
3019
3022
3020
3023
put_in ( ice_agent . checklist [ pair . id ] , pair )
Original file line number Diff line number Diff line change @@ -1566,9 +1566,9 @@ defmodule ExICE.Priv.ICEAgentTest do
1566
1566
assert ice_agent . state == :completed
1567
1567
end
1568
1568
1569
- test "candidate fails to send conn check " do
1569
+ test "failure on send" do
1570
1570
# 1. replace candidate with the mock one that always fails to send data
1571
- # 2. assert that after unsuccessful conn check sending, ice_agent move conn pair to the failed state
1571
+ # 2. assert that after unsuccessful conn check sending, ice_agent moves conn pair to the failed state
1572
1572
1573
1573
ice_agent =
1574
1574
ICEAgent . new (
You can’t perform that action at this time.
0 commit comments