fix failing tests: ping check config and whitelist cache race (#55)
- check_results_controller_test: add required config host for ping check - brute_force_protection_test: set async: false to avoid ETS cache race Reviewed-on: graham/towerops-web#55
This commit is contained in:
parent
28e97ff5f0
commit
1781aace98
2 changed files with 3 additions and 2 deletions
|
|
@ -54,7 +54,8 @@ defmodule ToweropsWeb.Api.V1.CheckResultsControllerTest do
|
|||
enabled: true,
|
||||
interval_seconds: 60,
|
||||
device_id: device.id,
|
||||
organization_id: organization.id
|
||||
organization_id: organization.id,
|
||||
config: %{"host" => "10.0.0.1"}
|
||||
})
|
||||
|
||||
conn = get(conn, ~p"/api/v1/devices/#{device.id}/checks")
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
defmodule ToweropsWeb.Plugs.BruteForceProtectionTest do
|
||||
use Towerops.DataCase, async: true
|
||||
use Towerops.DataCase, async: false
|
||||
|
||||
import Plug.Conn
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue