diff --git a/CodePush.js b/CodePush.js index 64e2df97..500e035c 100644 --- a/CodePush.js +++ b/CodePush.js @@ -188,6 +188,10 @@ async function tryReportStatus(statusReport, resumeListener) { if (statusReport.appVersion) { log(`Reporting binary update (${statusReport.appVersion})`); + if (!config.deploymentKey) { + throw new Error("Deployment key is missed"); + } + const sdk = getPromisifiedSdk(requestFetchAdapter, config); await sdk.reportStatusDeploy(/* deployedPackage */ null, /* status */ null, previousLabelOrAppVersion, previousDeploymentKey); } else { diff --git a/code-push-plugin-testing-framework/script/testUtil.js b/code-push-plugin-testing-framework/script/testUtil.js index 600f3137..5d39f503 100644 --- a/code-push-plugin-testing-framework/script/testUtil.js +++ b/code-push-plugin-testing-framework/script/testUtil.js @@ -45,7 +45,7 @@ var TestUtil = (function () { options = options || {}; // set default options if (options.maxBuffer === undefined) - options.maxBuffer = 1024 * 500; + options.maxBuffer = 1024 * 1024 * 500; if (options.timeout === undefined) options.timeout = 10 * 60 * 1000; if (!options.noLogCommand) diff --git a/test/test.ts b/test/test.ts index 5575b51a..01e49bcc 100644 --- a/test/test.ts +++ b/test/test.ts @@ -233,7 +233,7 @@ class RNIOS extends Platform.IOS implements RNPlatform { const hashWithParen = targetEmulator.match(hashRegEx)[0]; const hash = hashWithParen.substr(1, hashWithParen.length - 2); return TestUtil.getProcessOutput("xcodebuild -workspace " + path.join(iOSProject, TestConfig.TestAppName) + ".xcworkspace -scheme " + TestConfig.TestAppName + - " -configuration Release -destination \"platform=iOS Simulator,id=" + hash + "\" -derivedDataPath build", { cwd: iOSProject, maxBuffer: 1024 * 1024 * 20, noLogStdOut: true }); + " -configuration Release -destination \"platform=iOS Simulator,id=" + hash + "\" -derivedDataPath build EXCLUDED_ARCHS=arm64", { cwd: iOSProject, maxBuffer: 1024 * 1024 * 500, noLogStdOut: true }); }) .then( () => { return null; },