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
@@ -935,10 +936,7 @@ defmodule NervesHubWeb.WebsocketTest do
935936 not_before = Timex . now ( ) |> Timex . shift ( days: - 1 )
936937 not_after = Timex . now ( ) |> Timex . shift ( seconds: 1 )
937938
938- template =
939- Certificate.Template . new ( :root_ca ,
940- validity: Certificate.Validity . new ( not_before , not_after )
941- )
939+ template = X509Template . new ( :root_ca , validity: X509Validity . new ( not_before , not_after ) )
942940
943941 % { cert: ca , key: ca_key } = Fixtures . ca_certificate_fixture ( org , template: template )
944942
You can’t perform that action at this time.
0 commit comments