Checkpoint audio-only Skald fork work

This commit is contained in:
Storm Dragon
2026-05-18 13:06:57 -04:00
parent a8ada950d5
commit 965347cad4
48 changed files with 1080 additions and 3651 deletions
+9 -10
View File
@@ -34,23 +34,23 @@ func TestConstantTimeCompare(t *testing.T) {
}
}
func TestGroup(t *testing.T) {
func TestHall(t *testing.T) {
halls.halls = nil
Add("hall", &Description{})
Add("hall/subgroup", &Description{Public: true})
Add("hall/subhall", &Description{Public: true})
if len(halls.halls) != 2 {
t.Errorf("Expected 2, got %v", len(halls.halls))
}
g := Get("hall")
g2 := Get("hall/subgroup")
g2 := Get("hall/subhall")
if g == nil {
t.Fatalf("Couldn't get hall")
}
if g2 == nil {
t.Fatalf("Couldn't get hall/subgroup")
t.Fatalf("Couldn't get hall/subhall")
}
if name := g.Name(); name != "hall" {
t.Errorf("Name: expected group1, got %v", name)
t.Errorf("Name: expected hall, got %v", name)
}
if locked, _ := g.Locked(); locked {
t.Errorf("Locked: expected false, got %v", locked)
@@ -64,12 +64,12 @@ func TestGroup(t *testing.T) {
t.Errorf("Expected 2, got %v", names)
}
if subs := GetSubGroups("hall"); len(subs) != 0 {
if subs := GetSubHalls("hall"); len(subs) != 0 {
t.Errorf("Expected [], got %v", subs)
}
if public := GetPublic(nil); len(public) != 1 || public[0].Name != "hall/subgroup" {
t.Errorf("Expected hall/subgroup, got %v", public)
if public := GetPublic(nil); len(public) != 1 || public[0].Name != "hall/subhall" {
t.Errorf("Expected hall/subhall, got %v", public)
}
}
@@ -167,7 +167,7 @@ type credPerm struct {
var desc2JSON = `
{
"max-history-age": 10,
"auto-subgroups": true,
"auto-subhalls": true,
"users": {
"jch": {"password": "topsecret", "permissions": "op"},
"john": {"password": "secret", "permissions": "present"},
@@ -377,7 +377,6 @@ func TestValidHallName(t *testing.T) {
func TestPayloadTypeDistinct(t *testing.T) {
names := []string{
"vp8", "vp9", "av1", "h264",
"opus", "g722", "pcmu", "pcma",
}