changeset 33700:970967e0a917

http: add a test of actually pushing with httppostargs This was previously untested. Sigh. Differential Revision: https://phab.mercurial-scm.org/D230
author Augie Fackler <augie@google.com>
date Fri, 04 Aug 2017 15:49:36 -0400
parents 50c44dee741a
children fda0867cfe03
files tests/test-push-http.t
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-push-http.t	Sun Aug 06 01:13:57 2017 +0900
+++ b/tests/test-push-http.t	Fri Aug 04 15:49:36 2017 -0400
@@ -172,4 +172,20 @@
   % serve errors
   [255]
 
+  $ cat > .hg/hgrc <<EOF
+  > [web]
+  > push_ssl = false
+  > allow_push = *
+  > [experimental]
+  > httppostargs=true
+  > EOF
+  $ req
+  pushing to http://localhost:$HGPORT/
+  searching for changes
+  remote: adding changesets
+  remote: adding manifests
+  remote: adding file changes
+  remote: added 1 changesets with 1 changes to 1 files
+  % serve errors
+
   $ cd ..