EMC SMI-S delete snapshot unit test takes too long

EMC SMI-S unit test for deleting snapshot takes too long.
This patch sets Timout to 0 in cinder_emc_config.xml
so that it will return immediately.  Without this fix,
it will wait for 10 seconds by default.

Change-Id: I223f6741a2ce393e555467350201a695ae210152
Closes-Bug: #1289653
This commit is contained in:
Xing Yang 2014-03-07 13:43:22 -05:00
parent d6b3b12820
commit 8ed3a0aab4
1 changed files with 10 additions and 0 deletions

View File

@ -947,6 +947,11 @@ class EMCSMISISCSIDriverTestCase(test.TestCase):
emc.appendChild(ecompassword)
ecompassword.appendChild(ecompasswordtext)
timeout = doc.createElement("Timeout")
timeouttext = doc.createTextNode("0")
emc.appendChild(timeout)
timeout.appendChild(timeouttext)
self.config_file_path = self.tempdir + '/' + self.data.config_file_name
f = open(self.config_file_path, 'w')
doc.writexml(f)
@ -1149,6 +1154,11 @@ class EMCSMISFCDriverTestCase(test.TestCase):
emc.appendChild(ecompassword)
ecompassword.appendChild(ecompasswordtext)
timeout = doc.createElement("Timeout")
timeouttext = doc.createTextNode("0")
emc.appendChild(timeout)
timeout.appendChild(timeouttext)
self.config_file_path = self.tempdir + '/' + self.data.config_file_name
f = open(self.config_file_path, 'w')
doc.writexml(f)