Config: Fix test failure when another test set this value before.

This commit is contained in:
Valentin Lorentz 2019-08-24 23:35:46 +02:00
parent c1ae3f5c81
commit 633eea0730
1 changed files with 5 additions and 1 deletions

View File

@ -216,7 +216,11 @@ class ConfigTestCase(ChannelPluginTestCase):
# Inherit from global value (nothing was set of current net or current
# chan):
self.assertResponse('config channel reply.whenAddressedBy.strings', '^')
(old_channel, self.channel) = (self.channel, '#iejofjfozifk')
try:
self.assertResponse('config channel reply.whenAddressedBy.strings', '^')
finally:
self.channel = old_channel
# Still exact match for #2:
self.assertResponse('config channel #testchan1 reply.whenAddressedBy.strings', '@')