File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
test/nerves_hub_web/channels Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ defmodule NervesHubWeb.WebsocketTest do
1717 alias NervesHub.Support.Utils
1818 alias NervesHubWeb.DeviceEndpoint
1919 alias NervesHubWeb.Endpoint
20+ alias X509.Certificate.Template , as: X509Template
2021 alias X509.Certificate.Validity , as: X509Validity
2122
2223 import Ecto.Query
@@ -941,10 +942,7 @@ defmodule NervesHubWeb.WebsocketTest do
941942 not_before = Timex . now ( ) |> Timex . shift ( days: - 1 )
942943 not_after = Timex . now ( ) |> Timex . shift ( seconds: 1 )
943944
944- template =
945- Certificate.Template . new ( :root_ca ,
946- validity: Certificate.Validity . new ( not_before , not_after )
947- )
945+ template = X509Template . new ( :root_ca , validity: X509Validity . new ( not_before , not_after ) )
948946
949947 % { cert: ca , key: ca_key } = Fixtures . ca_certificate_fixture ( org , template: template )
950948
You can’t perform that action at this time.
0 commit comments