Skip to content

Commit a0af03c

Browse files
committed
Get pubsub numpat working
This was a cherry-pick of e08b426 Only the unit test was needed to be back-ported
1 parent 5f758ba commit a0af03c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/RediStackIntegrationTests/Commands/PubSubCommandsTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,14 @@ final class RedisPubSubCommandsTests: RediStackIntegrationTestCase {
189189
self.waitForExpectations(timeout: 1)
190190
}
191191

192+
func test_pubSubNumpat() throws {
193+
let queryConnection = try self.makeNewConnection()
194+
defer { try? queryConnection.close().wait() }
195+
196+
let numPat = try queryConnection.patternSubscriberCount().wait()
197+
XCTAssertGreaterThanOrEqual(numPat, 0)
198+
}
199+
192200
func test_pubSubChannels() throws {
193201
let fn = #function
194202
let subscriber = try self.makeNewConnection()

0 commit comments

Comments
 (0)