Skip to content

Commit b5292d6

Browse files
committed
Reduce test output.
1 parent 2bf7b9f commit b5292d6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/async/http/protocol/request.rb

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def remote_address
4141
def remote_address= value
4242
@remote_address = value
4343
end
44+
45+
def inspect
46+
"#<#{self.class}:0x#{self.object_id.to_s(16)} method=#{method} path=#{path} version=#{version}>"
47+
end
4448
end
4549
end
4650
end

lib/async/http/protocol/response.rb

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ def remote_address
3333
def remote_address= value
3434
@remote_address = value
3535
end
36+
37+
def inspect
38+
"#<#{self.class}:0x#{self.object_id.to_s(16)} status=#{status}>"
39+
end
3640
end
3741
end
3842
end

0 commit comments

Comments
 (0)