This commit is contained in:
wiggin77 2023-01-13 21:25:56 -05:00
parent 5b345bd401
commit 4df8c43410
2 changed files with 3 additions and 1 deletions

View File

@ -269,7 +269,7 @@ func TestGetBlocksComplianceHistory(t *testing.T) {
require.Nil(t, bchr)
})
t.Run("good call, no deleted", func(t *testing.T) {
t.Run("good call, exclude deleted", func(t *testing.T) {
th, clients := setupTestHelperForCompliance(t, true)
defer th.TearDown()

View File

@ -114,6 +114,8 @@ func deleteTestBoard(t *testing.T, store store.Store, boardID string, userID str
require.NoError(t, err)
}
// extractIDs is a test helper that extracts a sorted slice of IDs from slices of various struct types.
// Might have used generics here except that would require implementing a `GetID` method on each type.
func extractIDs(t *testing.T, arr ...any) []string {
ids := make([]string, 0)