Skip to content

Commit

Permalink
Use RFC 2606 reserved invalid DNS name in tests.
Browse files Browse the repository at this point in the history
This test used a DNS name which, while currently not existing, is not
actually reserved. This can manifest as a test failure on poorly
configured (like Time Warner Cable) networks. This changes said DNS
name to one using a reserved invalid top level name as specified in
RFC 2606.
  • Loading branch information
gabrielg committed Nov 5, 2014
1 parent fef4526 commit ca23261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_bad_schema_ref.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_bad_host_ref
schema = {
"$schema" => "http://json-schema.org/draft-04/schema#",
"type" => "array",
"items" => { "$ref" => "http://ppcheesecheseunicornnuuuurrrrr.com/json.schema"}
"items" => { "$ref" => "http://ppcheesecheseunicornnuuuurrrrr.example.invalid/json.schema"}
}

data = [1,2,3]
Expand Down

0 comments on commit ca23261

Please sign in to comment.