for fuzzing the imapserver and smtpserver use different config files than regular tests

otherwise they cannot be running at the same time, they could overwrite each
other's files.
This commit is contained in:
Mechiel Lukkien
2023-05-22 15:37:03 +02:00
parent 1f5ab1b795
commit dcc051e149
7 changed files with 60 additions and 2 deletions

View File

@ -30,7 +30,7 @@ func FuzzServer(f *testing.F) {
f.Add("QUIT")
mox.Context = ctxbg
mox.ConfigStaticPath = "../testdata/smtp/mox.conf"
mox.ConfigStaticPath = "../testdata/smtpserverfuzz/mox.conf"
mox.MustLoadConfig(false)
dataDir := mox.ConfigDirPath(mox.Conf.Static.DataDir)
os.RemoveAll(dataDir)