Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Oct 1, 2024
1 parent d6ab0cf commit f4e8a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rule/rulefunction/library_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ func TestLibraryPropertiesUrlFieldDeadLink(t *testing.T) {
testTables := []libraryRuleFunctionTestTable{
{"Unable to load", "InvalidLibraryProperties", ruleresult.NotRun, ""},
{"Not defined", "MissingFields", ruleresult.NotRun, ""},
{"Bad URL", "BadURL", ruleresult.Fail, "^Head \"http://invalid/\": dial tcp: lookup invalid:"},
{"Bad URL", "BadURL", ruleresult.Fail, "^Head \"http://invalid/\": dial tcp: lookup invalid"},
{"HTTP error 404", "URL404", ruleresult.Fail, "^404 Not Found$"},
{"Good URL", "Recursive", ruleresult.Pass, ""},
}
Expand Down

0 comments on commit f4e8a75

Please sign in to comment.