# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1432733734 25200
#      Wed May 27 06:35:34 2015 -0700
# Node ID d49328038b381407165eb889f21e9effd0a81278
# Parent  53071142c7d7ae8a7e3b96a3f73f263d43079e64
test: explicitly test wire protocol discovery with bundle1 and bundle2

We want to make sure the behavior is similar in both cases.

diff --git a/tests/test-phases-exchange.t b/tests/test-phases-exchange.t
--- a/tests/test-phases-exchange.t
+++ b/tests/test-phases-exchange.t
@@ -1048,7 +1048,16 @@
   $ cat ../beta.pid >> $DAEMON_PIDS
   $ cd ../gamma
 
-  $ hg pull http://localhost:$HGPORT/
+  $ hg pull http://localhost:$HGPORT/ --config experimental.bundle2-exp=True
+  pulling from http://localhost:$HGPORT/
+  searching for changes
+  no changes found
+  $ hg phase f54f1bb90ff3
+  2: draft
+
+enforce bundle1
+
+  $ hg pull http://localhost:$HGPORT/ --config experimental.bundle2-exp=False
   pulling from http://localhost:$HGPORT/
   searching for changes
   no changes found