Avoid test pollution

This commit is contained in:
Till Faelligen 2023-05-17 11:27:42 +02:00
parent 738e649862
commit fe5e81e6b1
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -22,7 +22,10 @@ import (
)
func TestMonolithStarts(t *testing.T) {
monolith := DendriteMonolith{}
monolith := DendriteMonolith{
StorageDirectory: t.TempDir(),
CacheDirectory: t.TempDir(),
}
monolith.Start()
monolith.PublicKey()
monolith.Stop()
@ -60,7 +63,10 @@ func TestMonolithSetRelayServers(t *testing.T) {
}
for _, tc := range testCases {
monolith := DendriteMonolith{}
monolith := DendriteMonolith{
StorageDirectory: t.TempDir(),
CacheDirectory: t.TempDir(),
}
monolith.Start()
inputRelays := tc.relays