コード例 #1
0
ファイル: watchman.py プロジェクト: zvikihouzz/pants
 def _make_client(self):
     """Create a new watchman client using the BSER protocol over a UNIX socket."""
     self._logger.debug('setting initial watchman timeout to %s',
                        self._startup_timeout)
     return StreamableWatchmanClient(sockpath=self.socket,
                                     transport='local',
                                     timeout=self._startup_timeout)
コード例 #2
0
 def setUp(self):
   super(TestWatchmanClient, self).setUp()
   self.swc = StreamableWatchmanClient(sockpath='/tmp/testing', transport='local')
コード例 #3
0
 def _make_client(self, timeout=SOCKET_TIMEOUT_SECONDS):
     """Create a new watchman client using the BSER protocol over a UNIX socket."""
     return StreamableWatchmanClient(sockpath=self.socket,
                                     transport='local',
                                     timeout=timeout)
コード例 #4
0
ファイル: test_watchman_client.py プロジェクト: wiwa/pants
 def setUp(self):
     super().setUp()
     self.swc = StreamableWatchmanClient(sockpath="/tmp/testing", transport="local")
コード例 #5
0
 def setUp(self):
   BaseTest.setUp(self)
   self.swc = StreamableWatchmanClient(sockpath='/tmp/testing', transport='local')