Skip to content

Commit a13bfc4

Browse files
herwinweregon
authored andcommitted
Validate error message for IO.select with negative timeout
1 parent 0cf4763 commit a13bfc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/io/select_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
end
113113

114114
it "raises an ArgumentError when passed a negative timeout" do
115-
-> { IO.select(nil, nil, nil, -5)}.should raise_error(ArgumentError)
115+
-> { IO.select(nil, nil, nil, -5)}.should raise_error(ArgumentError, "time interval must not be negative")
116116
end
117117

118118
describe "returns the available descriptors when the file descriptor" do

0 commit comments

Comments
 (0)