mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-25 17:12:16 +00:00
DEV: cancel manager should bypass webmock (#1350)
Webmock can be a bit flaky under certain use cases.
This commit is contained in:
parent
7db2589cc4
commit
af18603b21
@ -3,6 +3,8 @@
|
||||
describe DiscourseAi::Completions::CancelManager do
|
||||
fab!(:model) { Fabricate(:anthropic_model, name: "test-model") }
|
||||
|
||||
before { WebMock.allow_net_connect! }
|
||||
|
||||
it "can stop monitoring for cancellation cleanly" do
|
||||
cancel_manager = DiscourseAi::Completions::CancelManager.new
|
||||
cancel_manager.start_monitor(delay: 100) { false }
|
||||
|
Loading…
x
Reference in New Issue
Block a user