]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/toss_test.go
Configure sendmail command per node
[nncp.git] / src / cypherpunks.ru / nncp / toss_test.go
index 3f948038f7358b9428edd4851ec96471fbf0b5f9..001a25b5618191230e322f8f85ec6b4795ec929a 100644 (file)
@@ -107,12 +107,12 @@ func TestTossEmail(t *testing.T) {
                        if len(dirFiles(rxPath)) == 0 {
                                return false
                        }
-                       ctx.Sendmail = []string{"/bin/sh", "-c", "false"}
+                       ctx.Neigh[*nodeOur.Id].Sendmail = []string{"/bin/sh", "-c", "false"}
                        ctx.Toss(ctx.Self.Id, DefaultNiceMail)
                        if len(dirFiles(rxPath)) == 0 {
                                return false
                        }
-                       ctx.Sendmail = []string{
+                       ctx.Neigh[*nodeOur.Id].Sendmail = []string{
                                "/bin/sh", "-c",
                                fmt.Sprintf("cat >> %s", filepath.Join(spool, "mbox")),
                        }