fix randomizer and err in config

This commit is contained in:
ycc
2026-02-02 15:32:36 +01:00
parent f498cfad1e
commit bb56b8dd9c
4 changed files with 96 additions and 26 deletions

View File

@@ -6,19 +6,6 @@ import (
"github.com/google/uuid"
)
func TestOpen(t *testing.T) {
ps := &PeerStorage{
DbFile: "peerdb.test",
cache: nil,
db: nil,
}
err := ps.open()
if err != nil {
t.Errorf("Failed to open database: %v", err)
}
}
func TestStorePeer(t *testing.T) {
id := createId(t)
GetConfig().SetMemPass("test")