Show More
@@ -117,6 +117,7 b' class SubversionTunnelWrapper(object):' | |||
|
117 | 117 | message=self._svn_string(message))) |
|
118 | 118 | self.remove_configs() |
|
119 | 119 | self.process.kill() |
|
120 | return 1 | |
|
120 | 121 | |
|
121 | 122 | def interrupt(self, signum, frame): |
|
122 | 123 | self.fail("Exited by timeout") |
@@ -171,7 +172,7 b' class SubversionTunnelWrapper(object):' | |||
|
171 | 172 | |
|
172 | 173 | first_response = self.get_first_client_response() |
|
173 | 174 | if not first_response: |
|
174 | self.fail("Repository name cannot be extracted") | |
|
175 | return self.fail("Repository name cannot be extracted") | |
|
175 | 176 | |
|
176 | 177 | url_parts = urlparse.urlparse(first_response['url']) |
|
177 | 178 | self.server.repo_name = url_parts.path.strip('/') |
@@ -103,7 +103,7 b' class TestSubversionServer(object):' | |||
|
103 | 103 | return_value=0): |
|
104 | 104 | with mock.patch.object( |
|
105 | 105 | SubversionTunnelWrapper, 'command', |
|
106 | return_value='date'): | |
|
106 | return_value=['date']): | |
|
107 | 107 | |
|
108 | 108 | exit_code = server.run() |
|
109 | 109 | # SVN has this differently configured, and we get in our mock env |
@@ -115,7 +115,7 b' class TestSubversionServer(object):' | |||
|
115 | 115 | from rhodecode.apps.ssh_support.lib.backends.svn import SubversionTunnelWrapper |
|
116 | 116 | with mock.patch.object( |
|
117 | 117 | SubversionTunnelWrapper, 'command', |
|
118 | return_value='date'): | |
|
118 | return_value=['date']): | |
|
119 | 119 | with mock.patch.object( |
|
120 | 120 | SubversionTunnelWrapper, 'get_first_client_response', |
|
121 | 121 | return_value=None): |
General Comments 0
You need to be logged in to leave comments.
Login now