Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 51308a6

Browse files
committed
Fix error message for Redis 3.2.3
1 parent f380bd0 commit 51308a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ServiceStack.Redis.Tests/RedisClientTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ public void Can_BgSave()
260260
catch (RedisResponseException e)
261261
{
262262
// if exception has that message then it still proves that BgSave works as expected.
263-
if (e.Message.StartsWith("Can't BGSAVE while AOF log rewriting is in progress"))
263+
if (e.Message.StartsWith("Can't BGSAVE while AOF log rewriting is in progress")
264+
|| e.Message.StartsWith("An AOF log rewriting in progress: can't BGSAVE right now"))
264265
return;
265266

266267
throw;

0 commit comments

Comments
 (0)