1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Remove obsolete test.

It's no longer easy to test group expiration.
This commit is contained in:
Juliusz Chroboczek 2021-08-23 18:14:38 +02:00
parent 06f2ecec16
commit 2d1763a743

View file

@ -57,24 +57,6 @@ func TestGroup(t *testing.T) {
if public := GetPublic(); len(public) != 1 || public[0].Name != "group/subgroup" { if public := GetPublic(); len(public) != 1 || public[0].Name != "group/subgroup" {
t.Errorf("Expected group/subgroup, got %v", public) t.Errorf("Expected group/subgroup, got %v", public)
} }
Expire()
if names := GetNames(); len(names) != 2 {
t.Errorf("Expected 2, got %v", names)
}
if found := Delete("nosuchgroup"); found || len(GetNames()) != 2 {
t.Errorf("Expected 2, got %v", GetNames())
}
if found := Delete("group/subgroup"); !found {
t.Errorf("Failed to delete")
}
if names := GetNames(); len(names) != 1 || names[0] != "group" {
t.Errorf("Expected group, got %v", names)
}
} }
func TestJSTime(t *testing.T) { func TestJSTime(t *testing.T) {