Changed assert output

This commit is contained in:
Dimitri Herzog 2021-02-26 11:53:04 +01:00 committed by GitHub
parent b6acf2814f
commit 9aecf0b2af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -99,11 +99,11 @@ func (matcher *dnsRecordMatcher) Match(actual interface{}) (success bool, err er
}
func (matcher *dnsRecordMatcher) FailureMessage(actual interface{}) (message string) {
return fmt.Sprintf("Expected\n\t%s\nto contain\n\tdomain '%s', ttl '%d', type '%s', answer '%s'",
return fmt.Sprintf("Expected\n\t%s\n to contain\n\t domain '%s', ttl '%d', type '%s', answer '%s'",
actual, matcher.domain, matcher.TTL, dns.TypeToString[matcher.dnsType], matcher.answer)
}
func (matcher *dnsRecordMatcher) NegatedFailureMessage(actual interface{}) (message string) {
return fmt.Sprintf("Expected\n\t%s\n not to contain\n\tdomain '%s', ttl '%d', type '%s', answer '%s'",
return fmt.Sprintf("Expected\n\t%s\n not to contain\n\t domain '%s', ttl '%d', type '%s', answer '%s'",
actual, matcher.domain, matcher.TTL, dns.TypeToString[matcher.dnsType], matcher.answer)
}