Limnoria/plugins
Valentin Lorentz 78dc45e99e Aka: eliminate race condition in tests?
Sometimes (very rarely), the test errors with:

```
======================================================================
FAIL: testHistsearch (Aka.test.AkaChannelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/supybot/test.py", line 214, in runTest
    originalRunTest()
  File "/usr/lib/python3/dist-packages/supybot/plugins/Aka/test.py", line 67, in testHistsearch
    self.assertResponse('histsearch .*', '@echo foo')
  File "/usr/lib/python3/dist-packages/supybot/test.py", line 402, in assertResponse
    self.assertEqual(m.args[1], expectedResponse,
AssertionError: '@aka add histsearch "last --from [cif true[80 chars]"]]"' != '@echo foo'
- @aka add histsearch "last --from [cif true \"echo test\" \"echo test\"] --regexp [concat \"m/$1/\" [re s/g// \"@2\"]]"
+ @echo foo
 : '@echo foo' != '@aka add histsearch "last --from [cif true \\"echo test\\" \\"echo test\\"] --regexp [concat \\"m/$1/\\" [re s/g// \\"@2\\"]]"'
```

ie. histsearch returns the 'aka add' message instead of the 'echo foo'
one.

My guess is that if they happen too closely to each other, they get
added to the history in the wrong order (how? it's not threaded)

So this commit works around the issue by making the regexp unambiguous.
2021-02-21 00:18:03 +01:00
..
Admin Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Aka Aka: eliminate race condition in tests? 2021-02-21 00:18:03 +01:00
Alias Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Anonymous Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Autocomplete Autocomplete: fix typo in README. 2020-09-27 15:24:05 +02:00
AutoMode Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
BadWords BadWords: Re-allow words with a space (aka 'phrases') 2020-09-05 22:59:09 +02:00
Channel Channel: add support for MODES= with no value in ISUPPORT. 2020-06-27 07:51:16 +02:00
ChannelLogger ChannelLogger: Add tests for non-relayed messages when rewriteRelayed is True. 2020-08-30 14:52:45 +02:00
ChannelStats ChannelStats: Skip checks of nick in irc.state.channels[channel] when channel databases are linked. 2020-04-07 21:20:01 +02:00
Conditional Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Config Config: Don't prepend @ to config value names if their only children are networks. 2020-09-09 15:23:58 +02:00
Ctcp Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
DDG DDG: Add region test. 2020-07-06 22:34:29 +02:00
Debug Aka, Debug: cleanup imports 2020-01-26 10:42:43 -08:00
Dict Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Dunno Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Factoids Factoids: Add --author filtering to @search. 2020-07-14 18:16:10 +02:00
Fediverse Fediverse: Remove nick prefix from snarfer output. 2020-05-16 23:15:11 +02:00
Filter Filter: add support for upper-case letters. 2020-05-23 13:32:26 +02:00
Format Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Games Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Google Google: Set User-Agent override. (#1426) 2020-07-14 14:44:43 +02:00
GPG Use importlib instead of imp. 2020-01-26 12:00:08 +01:00
Hashes Use importlib instead of imp. 2020-01-26 12:00:08 +01:00
Herald Herald: Use time.monotonic instead of time.time. 2020-07-03 21:00:43 +02:00
Internet Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Karma Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Lart Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Later Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Limiter Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Math Math: Fix test on Python 3.10 (nightly) 2020-09-19 10:38:07 +02:00
MessageParser callbacks: honor network-specificity of supybot.reply.whenAddressedBy. 2020-04-11 15:00:46 +02:00
Misc Misc: Fix log message on invalid commands in private 2020-09-30 10:25:22 +02:00
MoobotFactoids Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Network Network: add @capabilities command. 2020-11-09 21:45:01 +01:00
News Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
NickAuth NickAuth: Add WHOX test. 2020-06-12 19:29:08 +02:00
NickCapture Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Nickometer Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Note Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Owner Owner: remove obsolete note about stock plugins on ImportError 2020-05-21 23:06:20 -07:00
Plugin Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
PluginDownloader Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Praise Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Protector Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Quote Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
QuoteGrabs QuoteGrabs: Add support for +draft/reply to point to the message to grab. 2020-05-15 18:17:34 +02:00
Relay Relay: Set msg.channel before passing it to _sendToOthers. 2021-01-15 21:25:02 +01:00
Reply Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
RSS RSS: include channel name in 'feed is announced but does not exist' error log. 2020-10-10 11:51:56 +02:00
Scheduler Add command @scheduler remind 2020-10-07 21:42:53 +02:00
SedRegex SedRegex: test "nick, " prefix for explicit reference as well as "nick: " 2020-10-18 13:44:05 -07:00
Seen Seen: Don't internalize IrcString. 2020-05-22 08:38:42 +02:00
Services Services: Fix typo in docstring 2021-01-30 19:41:26 +01:00
ShrinkUrl Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Status Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
String Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Success Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Time Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Todo Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Topic Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Unix Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
URL Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
User Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Utilities Fix msgfmt warnings. 2020-03-26 22:10:28 +01:00
Web Web: Add new @location command, to follow HTTP redirects. 2020-10-13 22:28:52 +02:00
__init__.py Seen: Don't internalize IrcString (again). 2020-06-05 00:41:18 +02:00
messages.pot update messages.pot files && Unix: update l10n-fi. 2014-03-22 12:22:54 +02:00