mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-28 06:51:17 -07:00
Chore: homepage tests (#6278)
This commit is contained in:
@@ -86,7 +86,7 @@ export async function servicesFromDocker() {
|
||||
// bad docker connections can result in a <Buffer ...> object?
|
||||
// in any case, this ensures the result is the expected array
|
||||
if (!Array.isArray(containers)) {
|
||||
return [];
|
||||
return { server: serverName, services: [] };
|
||||
}
|
||||
|
||||
const discovered = containers.map((container) => {
|
||||
@@ -188,6 +188,7 @@ export async function servicesFromKubernetes() {
|
||||
|
||||
const resources = [...ingressList, ...traefikIngressList, ...httpRouteList];
|
||||
|
||||
/* c8 ignore next 3 -- resources is always an array once the spreads succeed */
|
||||
if (!resources) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user