File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ func (suite *MailSuite) TestSendMail() {
6969 m = m ["data" ].(map [string ]any )
7070
7171 require .Len (t , m , 8 )
72- require .Equal (t , "127.0.0.1 :8025" , m ["server" ])
72+ require .Regexp (t , ".* :8025" , m ["server" ])
7373 require .Equal (t , []any {map [string ]any {"address" : "from@foo.bar" }}, m ["from" ])
7474 require .Equal (t , []any {map [string ]any {"address" : "rcipient@foo.bar" }}, m ["to" ])
7575 require .NotContains (t , m , "attachments" )
@@ -213,7 +213,7 @@ It can be any text data.
213213 m := v .(map [string ]any )
214214 m = m ["data" ].(map [string ]any )
215215 require .Len (t , m , 10 )
216- require .Equal (t , "127.0.0.1 :8030" , m ["server" ])
216+ require .Regexp (t , ".* :8030" , m ["server" ])
217217 require .Equal (t , []any {map [string ]any {"address" : "from@foo.bar" }}, m ["from" ])
218218 require .Equal (t , []any {map [string ]any {"address" : "rcipient@foo.bar" }}, m ["to" ])
219219 require .Equal (t , []any {
You can’t perform that action at this time.
0 commit comments