Commits

Yuya Nishihara  committed 9892f74

repoagent_test: make sure watcher can notice changes in new queue

  • Participants
  • Parent commits ad88c88

Comments (0)

Files changed (1)

File tests/qt_repoagent_test.py

         # TODO: WorkingBranchChanged should be included
         self.wait_changed(thgrepo.WorkingParentChanged)
 
+    def test_listen_to_new_queue_changes(self):
+        self.agent.runCommand(['qqueue', '-c', 'foo'])
+        self.wait_changed(thgrepo.LogChanged)
+        self.agent.runCommandSequence([['export', 'tip', '-o', 'patch'],
+                                       ['qimport', 'patch']])
+        self.wait_changed(thgrepo.LogChanged)
+
     def test_invalidate_on_dirstate_changed(self):
         repo = self.agent.rawRepo()
         self.assertEqual(set(['foo']), set(repo.dirstate))  # preload cache