Skip to content

Commit

Permalink
dkim: fix typo in test error message
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Nov 24, 2020
1 parent 2c5cc09 commit f413397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dkim/canonical_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ func TestRelaxedCanonicalizer_CanonicalBody(t *testing.T) {

wc := c.CanonicalizeBody(&b)
if _, err := wc.Write([]byte(test.original)); err != nil {
t.Errorf("Expected no error while writing to simple body canonicalizer, got: %v", err)
t.Errorf("Expected no error while writing to relaxed body canonicalizer, got: %v", err)
} else if err := wc.Close(); err != nil {
t.Errorf("Expected no error while closing simple body canonicalizer, got: %v", err)
t.Errorf("Expected no error while closing relaxed body canonicalizer, got: %v", err)
} else if s := b.String(); s != test.canonical {
t.Errorf("Expected canonical body for %q to be %q, but got %q", test.original, test.canonical, s)
}
Expand Down

0 comments on commit f413397

Please sign in to comment.