Skip to content

Commit cc4a3b4

Browse files
author
Taras Tyshko
committed
fix tests
1 parent db1e773 commit cc4a3b4

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
@@ -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

0 commit comments

Comments
 (0)