Skip to content

Commit 5f26a05

Browse files
committed
integration tests for subkey notifications (something channel-routing related still failing)
1 parent 3303920 commit 5f26a05

17 files changed

Lines changed: 485 additions & 34 deletions

src/StackExchange.Redis/KeyNotification.SubKeys.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ internal bool TryMoveNext(bool setCurrent)
320320
var valueLength = (int)value.Length();
321321
_position += colonIndex + 1 + valueLength;
322322

323-
// Skip the | separator if present
324-
if (_position < _data.Length && _data[_position] == (byte)'|')
323+
// Skip the separator if present (| or ,)
324+
if (_position < _data.Length && (_data[_position] == (byte)'|' || _data[_position] == (byte)','))
325325
{
326326
_position++;
327327
}

tests/RedisConfigs/Basic/primary-6379.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ appendonly no
88
dbfilename "primary-6379.rdb"
99
save ""
1010
enable-debug-command yes
11-
notify-keyspace-events AKE
11+
notify-keyspace-events AKESTIV

tests/RedisConfigs/Basic/replica-6380.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ appendonly no
88
dir "../Temp"
99
dbfilename "replica-6380.rdb"
1010
save ""
11-
notify-keyspace-events AKE
11+
notify-keyspace-events AKESTIV

tests/RedisConfigs/Basic/secure-6381.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ maxmemory 512mb
55
dir "../Temp"
66
dbfilename "secure-6381.rdb"
77
save ""
8-
notify-keyspace-events AKE
8+
notify-keyspace-events AKESTIV

tests/RedisConfigs/Basic/tls-ciphers-6384.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ tls-protocols "TLSv1.2 TLSv1.3"
99
tls-cert-file /Certs/redis.crt
1010
tls-key-file /Certs/redis.key
1111
tls-ca-cert-file /Certs/ca.crt
12-
notify-keyspace-events AKE
12+
notify-keyspace-events AKESTIV

tests/RedisConfigs/Cluster/cluster-7000.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ appendonly yes
77
dbfilename "dump-7000.rdb"
88
appendfilename "appendonly-7000.aof"
99
save ""
10-
notify-keyspace-events AKE
10+
notify-keyspace-events AKESTIV

tests/RedisConfigs/Cluster/cluster-7001.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ appendonly yes
77
dbfilename "dump-7001.rdb"
88
appendfilename "appendonly-7001.aof"
99
save ""
10-
notify-keyspace-events AKE
10+
notify-keyspace-events AKESTIV

tests/RedisConfigs/Cluster/cluster-7002.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ appendonly yes
77
dbfilename "dump-7002.rdb"
88
appendfilename "appendonly-7002.aof"
99
save ""
10-
notify-keyspace-events AKE
10+
notify-keyspace-events AKESTIV

tests/RedisConfigs/Cluster/cluster-7003.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ appendonly yes
77
dbfilename "dump-7003.rdb"
88
appendfilename "appendonly-7003.aof"
99
save ""
10-
notify-keyspace-events AKE
10+
notify-keyspace-events AKESTIV

tests/RedisConfigs/Cluster/cluster-7004.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ appendonly yes
77
dbfilename "dump-7004.rdb"
88
appendfilename "appendonly-7004.aof"
99
save ""
10-
notify-keyspace-events AKE
10+
notify-keyspace-events AKESTIV

0 commit comments

Comments
 (0)