Skip to content

Commit f4e8a75

Browse files
committed
Fixed unit test
1 parent d6ab0cf commit f4e8a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/rule/rulefunction/library_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ func TestLibraryPropertiesUrlFieldDeadLink(t *testing.T) {
779779
testTables := []libraryRuleFunctionTestTable{
780780
{"Unable to load", "InvalidLibraryProperties", ruleresult.NotRun, ""},
781781
{"Not defined", "MissingFields", ruleresult.NotRun, ""},
782-
{"Bad URL", "BadURL", ruleresult.Fail, "^Head \"http://invalid/\": dial tcp: lookup invalid:"},
782+
{"Bad URL", "BadURL", ruleresult.Fail, "^Head \"http://invalid/\": dial tcp: lookup invalid"},
783783
{"HTTP error 404", "URL404", ruleresult.Fail, "^404 Not Found$"},
784784
{"Good URL", "Recursive", ruleresult.Pass, ""},
785785
}

0 commit comments

Comments
 (0)