Skip to content

Commit

Permalink
simplify .gitignore, just on line for ignoring all the testdata/*/dat…
Browse files Browse the repository at this point in the history
…a directories
  • Loading branch information
mjl- committed Nov 9, 2023
1 parent 893a6f8 commit deb16d2
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 15 deletions.
14 changes: 1 addition & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,18 @@
/rfc/[0-9][0-9]*
/local/
/testdata/check/
/testdata/ctl/data/
/testdata/*/data/
/testdata/ctl/dkim/
/testdata/dmarcdb/data/
/testdata/empty/
/testdata/exportmaildir/
/testdata/exportmbox/
/testdata/httpaccount/data/
/testdata/imap/data/
/testdata/imapserverfuzz/data/
/testdata/imaptest/data/
/testdata/junk/*.bloom
/testdata/junk/*.db
/testdata/queue/data/
/testdata/sent/
/testdata/smtp/data/
/testdata/smtp/datajunk/
/testdata/smtp/sendlimit/data/
/testdata/smtp/catchall/data/
/testdata/smtp/postmaster/
/testdata/smtpserverfuzz/data/
/testdata/store/data/
/testdata/tlsrptsend/data/
/testdata/train/
/testdata/webmail/data/
/testdata/upgradetest.mbox.gz
/testdata/integration/example-integration.zone
/testdata/integration/tmp-pebble-ca.pem
Expand Down
4 changes: 2 additions & 2 deletions smtpserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ func TestNonSMTP(t *testing.T) {

// Test limits on outgoing messages.
func TestLimitOutgoing(t *testing.T) {
ts := newTestServer(t, filepath.FromSlash("../testdata/smtp/sendlimit/mox.conf"), dns.MockResolver{})
ts := newTestServer(t, filepath.FromSlash("../testdata/smtpserversendlimit/mox.conf"), dns.MockResolver{})
defer ts.close()

ts.user = "[email protected]"
Expand Down Expand Up @@ -1237,7 +1237,7 @@ func TestCatchall(t *testing.T) {
"127.0.0.10": {"other.example."},
},
}
ts := newTestServer(t, filepath.FromSlash("../testdata/smtp/catchall/mox.conf"), resolver)
ts := newTestServer(t, filepath.FromSlash("../testdata/smtpservercatchall/mox.conf"), resolver)
defer ts.close()

testDeliver := func(rcptTo string, expErr *smtpclient.Error) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit deb16d2

Please sign in to comment.