@@ -40,7 +40,7 @@ defmodule Zexbox.AutoEscalation.AdfBuilderTest do
4040 test "first block is a telemetry paragraph with Tempo and Kibana links" do
4141 with_all_urls ( fn ->
4242 result = AdfBuilder . build_description ( runtime_error ( ) , % { } , % { } )
43- [ telemetry | _ ] = result . content
43+ [ telemetry | _rest ] = result . content
4444 assert telemetry . type == "paragraph"
4545 json = Jason . encode! ( telemetry )
4646 assert json =~ "Tempo Trace View"
@@ -53,7 +53,7 @@ defmodule Zexbox.AutoEscalation.AdfBuilderTest do
5353 test "shows '(Missing)' for unavailable telemetry URLs" do
5454 with_no_urls ( fn ->
5555 result = AdfBuilder . build_description ( runtime_error ( ) , % { } , % { } )
56- [ telemetry | _ ] = result . content
56+ [ telemetry | _rest ] = result . content
5757 json = Jason . encode! ( telemetry )
5858 assert json =~ "Tempo Trace View (Missing)"
5959 assert json =~ "Kibana Logs (Missing)"
@@ -93,8 +93,8 @@ defmodule Zexbox.AutoEscalation.AdfBuilderTest do
9393 assert json =~ "This happened during sync."
9494 assert json =~ "Error Details"
9595
96- { cd_pos , _ } = :binary . match ( json , "This happened during sync." )
97- { ed_pos , _ } = :binary . match ( json , "Error Details" )
96+ { cd_pos , _len } = :binary . match ( json , "This happened during sync." )
97+ { ed_pos , _len } = :binary . match ( json , "Error Details" )
9898 assert cd_pos < ed_pos
9999 end )
100100 end
0 commit comments