File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,15 @@ export async function iOSCapabilities(
44
44
if ( ! isCapabilityAlreadyPresent ( caps , 'appium:mjpegServerPort' ) ) {
45
45
if ( freeDevice . realDevice ) {
46
46
caps . firstMatch [ 0 ] [ 'appium:mjpegServerPort' ] = await getPort ( ) ;
47
- delete caps . alwaysMatch [ 'appium:mjpegServerPort' ] ;
48
47
} else {
49
48
/* In simulator, port forwarding won't happen for each session. So mjpegServerPort will be used only for 1st time.
50
49
* So set the port for the first time and resuse the same port for subsequent sessions.
51
50
*/
52
51
const existingPort = freeDevice . mjpegServerPort ;
53
52
caps . firstMatch [ 0 ] [ 'appium:mjpegServerPort' ] =
54
53
existingPort && ( await isPortBusy ( existingPort ) ) ? existingPort : await getPort ( ) ;
55
- delete caps . alwaysMatch [ 'appium:mjpegServerPort' ] ;
56
54
}
55
+ deleteAlwaysMatch ( caps , 'appium:mjpegServerPort' ) ;
57
56
deleteAlwaysMatch ( caps , 'appium:udid' ) ;
58
57
deleteAlwaysMatch ( caps , 'appium:deviceName' ) ;
59
58
deleteAlwaysMatch ( caps , 'appium:wdaLocalPort' ) ;
You can’t perform that action at this time.
0 commit comments