fix: Update the expected error code
MODIFY
package.json
package.json
"dependencies": {
"@babel/runtime": "^7.6.0",
"appium-android-driver": "^4.20.0",
- "appium-base-driver": "^4.0.3",
+ "appium-base-driver": "^4.1.0",
"appium-espresso-driver": "^1.0.0",
"appium-fake-driver": "^0.x",
"appium-ios-driver": "4.x",

MODIFY
test/driver-e2e-specs.js
test/driver-e2e-specs.js
@@ -111,7 +111,7 @@ describe('FakeDriver - via HTTP', function () {
// Now use that sessionID to call an arbitrary W3C-only endpoint that isn't implemented to see if it responds with correct error
const {statusCode, error} = await request.post({url: `${baseUrl}/${value.sessionId}/execute/async`, json: {script: '', args: ['a']}}).should.eventually.be.rejected;
- statusCode.should.equal(404);
+ statusCode.should.equal(405);
const {error: errorMessage, message, stacktrace} = error.value;
errorMessage.should.match(/unknown method/);
message.should.match(/Method has not yet been implemented/);

fix: Update the expected error code (#13371)