Skip to content

Commit c96a6ca

Browse files
committed
fix audit
1 parent 4fbd9be commit c96a6ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

enterprise/audit/diff_internal_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"time"
88

99
"github.com/google/uuid"
10+
"github.com/lib/pq"
1011
"github.com/stretchr/testify/assert"
1112
"github.com/stretchr/testify/require"
1213
"k8s.io/utils/pointer"
@@ -328,7 +329,7 @@ func Test_diff(t *testing.T) {
328329
"username": audit.OldNew{Old: "", New: "colin"},
329330
"hashed_password": audit.OldNew{Old: ([]byte)(nil), New: ([]byte)(nil), Secret: true},
330331
"status": audit.OldNew{Old: database.UserStatus(""), New: database.UserStatusActive},
331-
"rbac_roles": audit.OldNew{Old: ([]string)(nil), New: []string{"omega admin"}},
332+
"rbac_roles": audit.OldNew{Old: (pq.StringArray)(nil), New: pq.StringArray{"omega admin"}},
332333
},
333334
},
334335
})

0 commit comments

Comments
 (0)