From 42001bd9a135e6d824d529ca1bdfbc152c01c4e8 Mon Sep 17 00:00:00 2001 From: Jamil Bou Kheir Date: Thu, 23 Dec 2021 17:47:04 -0600 Subject: [PATCH] Remove typo s --- apps/fz_http/lib/fz_http/devices.ex | 4 ++-- apps/fz_http/test/fz_http_web/live/device_live/show_test.exs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/fz_http/lib/fz_http/devices.ex b/apps/fz_http/lib/fz_http/devices.ex index 097195ff0..fc120e889 100644 --- a/apps/fz_http/lib/fz_http/devices.ex +++ b/apps/fz_http/lib/fz_http/devices.ex @@ -187,12 +187,12 @@ defmodule FzHttp.Devices do defp persistent_keepalives_config(device) do pk = persistent_keepalives(device) - pk && "PersistentKeepalives = #{pk}" + pk && "PersistentKeepalive = #{pk}" if is_nil(pk) do "" else - "PersistentKeepalives = #{pk}" + "PersistentKeepalive = #{pk}" end end diff --git a/apps/fz_http/test/fz_http_web/live/device_live/show_test.exs b/apps/fz_http/test/fz_http_web/live/device_live/show_test.exs index 1a4cbdec5..48a2178c6 100644 --- a/apps/fz_http/test/fz_http_web/live/device_live/show_test.exs +++ b/apps/fz_http/test/fz_http_web/live/device_live/show_test.exs @@ -197,7 +197,7 @@ defmodule FzHttpWeb.DeviceLive.ShowTest do assert flash["info"] == "Device updated successfully." {:ok, _view, html} = live(conn, path) - assert html =~ "PersistentKeepalives = 120" + assert html =~ "PersistentKeepalive = 120" end test "prevents empty names", %{authed_conn: conn, device: device} do