Remove warning if geoip test is skipped
This commit is contained in:
@@ -36,7 +36,7 @@ test('can disable a user', async (done) => {
|
|||||||
.auth('admin', 'abc123')
|
.auth('admin', 'abc123')
|
||||||
.expect(200);
|
.expect(200);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('verify user is disabled', async (done) => {
|
test('verify user is disabled', async (done) => {
|
||||||
const response = await request
|
const response = await request
|
||||||
@@ -119,8 +119,6 @@ test('verify user list is populated', async (done) => {
|
|||||||
// Optionally, if GeoIP is configured, check the location property.
|
// Optionally, if GeoIP is configured, check the location property.
|
||||||
if (fs.existsSync('../../../data/GeoLite2-City.mmdb')) {
|
if (fs.existsSync('../../../data/GeoLite2-City.mmdb')) {
|
||||||
expect(response.body[0].geo.regionName).toBe('Localhost');
|
expect(response.body[0].geo.regionName).toBe('Localhost');
|
||||||
} else {
|
|
||||||
console.warn('GeoIP Data is not supplied. Skipping test. See https://owncast.online/docs/viewers/');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ws.close();
|
ws.close();
|
||||||
@@ -134,5 +132,4 @@ test('verify user list is populated', async (done) => {
|
|||||||
ws.on('close', function incoming(data) {
|
ws.on('close', function incoming(data) {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user