From 2d1763a743f766c89cd796ce7c83591c630af360 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 23 Aug 2021 18:14:38 +0200 Subject: [PATCH] Remove obsolete test. It's no longer easy to test group expiration. --- group/group_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/group/group_test.go b/group/group_test.go index 0c7b2f8..664a263 100644 --- a/group/group_test.go +++ b/group/group_test.go @@ -57,24 +57,6 @@ func TestGroup(t *testing.T) { if public := GetPublic(); len(public) != 1 || public[0].Name != "group/subgroup" { 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) {