From cd5387c567d15b1947aec1df4ecd8da68a157ea5 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 15 Mar 2022 13:47:53 +0000 Subject: [PATCH] DEV: Fix flaky specs (#114) --- .../provider/slack/slack_command_controller_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/lib/discourse_chat_integration/provider/slack/slack_command_controller_spec.rb b/spec/lib/discourse_chat_integration/provider/slack/slack_command_controller_spec.rb index de90ed6..15be5c2 100644 --- a/spec/lib/discourse_chat_integration/provider/slack/slack_command_controller_spec.rb +++ b/spec/lib/discourse_chat_integration/provider/slack/slack_command_controller_spec.rb @@ -3,6 +3,10 @@ require 'rails_helper' describe 'Slack Command Controller', type: :request do + before do + Discourse.cache.clear + end + let(:category) { Fabricate(:category) } let(:tag) { Fabricate(:tag) } let(:tag2) { Fabricate(:tag) }