From 9268a54b4b12889e82a5b80b6e97a5708772f0cb Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Fri, 13 Dec 2024 14:55:40 +0100 Subject: [PATCH] test: Update ports integration test --- test/functional/adb-commands-e2e-specs.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/functional/adb-commands-e2e-specs.js b/test/functional/adb-commands-e2e-specs.js index f77e2a52..6bcc6523 100644 --- a/test/functional/adb-commands-e2e-specs.js +++ b/test/functional/adb-commands-e2e-specs.js @@ -285,11 +285,8 @@ describe('adb commands', function () { }); describe('listPorts', function () { - it('should list IPv4 ports', async function () { - _.isEmpty(await adb.listPorts()).should.be.false; - }); - it('should list IPv6 ports', async function () { - _.isEmpty(await adb.listPorts('6')).should.be.false; + it('should list opened ports', async function () { + (_.isEmpty(await adb.listPorts()) && _.isEmpty(await adb.listPorts('6'))).should.be.false; }); }); });