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

Commit cab3983

Browse files
Revert "DEV: Patch Net::BufferedIO to help debug spec flakes (#1375)" (#1403)
This reverts commit ca78b1a. Problem resolved by discourse/discourse-perspective-api#110
1 parent 2842295 commit cab3983

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

spec/lib/completions/cancel_manager_spec.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
11
# frozen_string_literal: true
22

3-
# Debugging https://github.com/ruby/net-protocol/issues/32
4-
# which seems to be happening inconsistently in CI
5-
Net::BufferedIO.prepend(
6-
Module.new do
7-
def initialize(*args, **kwargs)
8-
if kwargs[:debug_output] && !kwargs[:debug_output].respond_to(:<<)
9-
raise ArgumentError, "debug_output must support <<"
10-
end
11-
super
12-
end
13-
14-
def debug_output=(debug_output)
15-
if debug_output && !debug_output.respond_to?(:<<)
16-
raise ArgumentError, "debug_output must support <<"
17-
end
18-
super
19-
end
20-
end,
21-
)
22-
233
describe DiscourseAi::Completions::CancelManager do
244
fab!(:model) { Fabricate(:anthropic_model, name: "test-model") }
255

0 commit comments

Comments
 (0)