mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Location tests more reliable (#12584)
* Location tests more reliable * perhaps this stayed disabled
This commit is contained in:
@@ -60,6 +60,7 @@ class LocationTest extends TestCase
|
||||
|
||||
public function testCanSetEncodedLocation()
|
||||
{
|
||||
Config::set('geoloc.dns', false);
|
||||
$device = Device::factory()->make(); /** @var Device $device */
|
||||
|
||||
// valid coords
|
||||
@@ -92,6 +93,7 @@ class LocationTest extends TestCase
|
||||
|
||||
public function testCanHandleGivenCoordinates()
|
||||
{
|
||||
Config::set('geoloc.dns', false);
|
||||
$device = Device::factory()->make(); /** @var Device $device */
|
||||
$location = Location::factory()->withCoordinates()->make();
|
||||
|
||||
@@ -136,6 +138,7 @@ class LocationTest extends TestCase
|
||||
|
||||
public function testCanSetDnsCoordinate()
|
||||
{
|
||||
Config::set('geoloc.dns', true);
|
||||
$device = Device::factory()->make(); /** @var Device $device */
|
||||
$location = Location::factory()->withCoordinates()->make();
|
||||
|
||||
|
Reference in New Issue
Block a user