mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
MessageBus handles readonly redis now, no need to wrap it
This commit is contained in:
@@ -89,7 +89,7 @@ describe Discourse do
|
||||
|
||||
it "adds a key in redis and publish a message through the message bus" do
|
||||
$redis.expects(:set).with(Discourse.readonly_mode_key, 1)
|
||||
DiscourseBus.expects(:publish).with(Discourse.readonly_channel, true)
|
||||
MessageBus.expects(:publish).with(Discourse.readonly_channel, true)
|
||||
Discourse.enable_readonly_mode
|
||||
end
|
||||
|
||||
@@ -99,7 +99,7 @@ describe Discourse do
|
||||
|
||||
it "removes a key from redis and publish a message through the message bus" do
|
||||
$redis.expects(:del).with(Discourse.readonly_mode_key)
|
||||
DiscourseBus.expects(:publish).with(Discourse.readonly_channel, false)
|
||||
MessageBus.expects(:publish).with(Discourse.readonly_channel, false)
|
||||
Discourse.disable_readonly_mode
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user