-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
joeybloggs
authored and
joeybloggs
committed
Jun 7, 2016
1 parent
4095cee
commit baceb2f
Showing
3 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,7 @@ func TestBadDial(t *testing.T) { | |
} | ||
|
||
func TestBadEmailTemplate(t *testing.T) { | ||
badTemplate := `{{ .NonExistantField }}` // referencing non-existant field | ||
badTemplate := `{{ .NonExistentField }}` // referencing non-existent field | ||
email := New("localhost", 3041, "", "", "[email protected]", []string{"[email protected]"}) | ||
email.SetEmailTemplate(badTemplate) | ||
log.RegisterHandler(email, log.InfoLevel) | ||
|
@@ -184,8 +184,6 @@ func TestBadSend(t *testing.T) { | |
email := New("localhost", 3041, "", "", "[email protected]", []string{"[email protected]"}) | ||
log.RegisterHandler(email, log.InfoLevel) | ||
|
||
var msg string | ||
|
||
server, err := net.Listen("tcp", ":3041") | ||
if err != nil { | ||
t.Errorf("Expected <nil> Got '%s'", err) | ||
|
@@ -212,7 +210,7 @@ func TestBadSend(t *testing.T) { | |
bufout: bufio.NewWriter(conn), | ||
} | ||
|
||
msg = handleClient(c, true) | ||
handleClient(c, true) | ||
} | ||
}() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters