chore: update deps (#4394)

* chore: update deps

* tests: update sqlmock tests for breaking chg

* tests (handlers): sort grants in checkEqualGrants(...)

sort the expected and got grants in
checkEqualGrants(...) to make the test more
deterministic.

* tests (asciicast): update backspace enc in TestEventMarshal(...)
This commit is contained in:
Jim authored and GitHub committed 2024-02-13 10:50:06 -05:00
1 parent 1b1c8b3bf9
commit 3af259ff69
37 files changed
+1108 -1539

No files matched your search

@@ -8,6 +8,7 @@ import (
"errors"
"fmt"
"slices"
"sort"
"strings"
"testing"
@@ -2118,6 +2119,12 @@ func checkEqualGrants(t *testing.T, expected []string, got *pb.Role) {
require, assert := require.New(t), assert.New(t)
require.Equal(len(expected), len(got.GrantStrings))
require.Equal(len(expected), len(got.Grants))
// sort expected and got to ensure they are in the same order
sort.Strings(expected)
sort.Slice(got.GrantStrings, func(i, j int) bool {
return got.GrantStrings[i] < got.GrantStrings[j]
})
for i, v := range expected {
parsed, err := perms.Parse(context.Background(), "o_abc123", v)
require.NoError(err)