Skip to content

Commit a693ef1

Browse files
committed
[exoframe-server] Fix url remove test check race condition
1 parent b7d024c commit a693ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/exoframe-server/test/remove.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ test('Should remove container by url', async () => {
112112
// check docker services
113113
const allContainers = await docker.listContainers();
114114
const urlContainers = allContainers.filter((c) =>
115-
c.Labels[`traefik.http.routers.${c.Labels['exoframe.deployment']}.rule`].includes(testUrl)
115+
c.Labels[`traefik.http.routers.${c.Labels['exoframe.deployment']}.rule`]?.includes?.(testUrl)
116116
);
117117
expect(urlContainers.length).toEqual(0);
118118
});

0 commit comments

Comments
 (0)