Skip to content

Commit b5cdc56

Browse files
author
Taras Tyshko
committed
fix tests
1 parent d5744c7 commit b5cdc56

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/nerves_hub_web/channels/websocket_test.exs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)