Permalink
Browse files

Added some comments and traces

  • Loading branch information...
Amit Apple
Amit Apple committed Apr 26, 2013
1 parent da4afd1 commit 16f90fac3de4c389a2b7661b92e5e0046c9fc611
Showing with 6 additions and 0 deletions.
  1. +6 −0 Kudu.FunctionalTests/DeploymentManagerTests.cs
@@ -618,16 +618,22 @@ public class DeploymentManagerTests
Task<HttpResponseMessage> responseTask1 = null;
Task<HttpResponseMessage> responseTask2 = null;
+ // Set custom command to make deployment last longer (10 seconds) so we'll be able to start the second deployment
+ // Safely knowing the first one is still going on
await appManager.SettingsManager.SetValue("COMMAND", "sleep 10 & xcopy /y %DEPLOYMENT_SOURCE%\\index.html %DEPLOYMENT_TARGET%\\");
// Start the first fetch request for the master branch
+ TestTracer.Trace("Making first deployment request");
responseTask1 = PostPayloadHelperAsync(appManager, client => client.PostAsync("deploy", new FormUrlEncodedContent(postMaster)));
// Wait for the first deployment to start
await WaitForAnyBuildingDeploymentAsync(appManager);
// Change branch and start second fetch request for test branch
await appManager.SettingsManager.SetValue("branch", "test");
+ await appManager.SettingsManager.Delete("COMMAND");
+
+ TestTracer.Trace("Making second deployment request");
responseTask2 = PostPayloadHelperAsync(appManager, client => client.PostAsync("deploy", new FormUrlEncodedContent(postTest)));
HttpResponseMessage responseResult1 = await responseTask1;

0 comments on commit 16f90fa

Please sign in to comment.