Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit af18603

Browse files
authored
DEV: cancel manager should bypass webmock (#1350)
Webmock can be a bit flaky under certain use cases.
1 parent 7db2589 commit af18603

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/lib/completions/cancel_manager_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
describe DiscourseAi::Completions::CancelManager do
44
fab!(:model) { Fabricate(:anthropic_model, name: "test-model") }
55

6+
before { WebMock.allow_net_connect! }
7+
68
it "can stop monitoring for cancellation cleanly" do
79
cancel_manager = DiscourseAi::Completions::CancelManager.new
810
cancel_manager.start_monitor(delay: 100) { false }

0 commit comments

Comments
 (0)