chore: remove backend/internal/listener/quick_setup_test.go

This commit is contained in:
風雪 committed 2026-08-29 10:54:05 +08:00
1 parent de4969d695
commit 81eee1e2d3
1 file changed
-29
@@ -1,29 +0,0 @@
package listener
import "testing"
func TestResolveRealityKeys(t *testing.T) {
priv, pub, err := resolveRealityKeys("", "")
if err != nil {
t.Fatal(err)
}
if priv == "" || pub == "" {
t.Fatal("empty keys")
}
pub2, err := derivePublicKey(priv)
if err != nil {
t.Fatal(err)
}
if pub2 != pub {
t.Fatalf("derived public key mismatch")
}
}
func TestRandomHelpers(t *testing.T) {
if len(randomHex(8)) != 16 {
t.Fatal("hex length")
}
if len(randomPassword(12)) != 12 {
t.Fatal("password length")
}
}