3
0

Post dep-upgrade fixes

This commit is contained in:
Denis Arh
2022-01-04 15:54:16 +01:00
parent 6eda39f3ad
commit 771a60abd7
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func fill(opt interface{}) {
continue
}
if f.Kind() == reflect.Float32 {
if f.Kind() == reflect.Float32 || f.Kind() == reflect.Float64 {
v.FieldByName(t.Name).SetFloat(float64(EnvFloat32(tag, float32(f.Float()))))
continue
}
-4
View File
@@ -149,10 +149,6 @@ func TestPermissionsCloneToMultipleRole(t *testing.T) {
roleT := h.roleID + 2
roleY := h.roleID + 3
fmt.Println("roleS: ", roleS)
fmt.Println("roleS: ", roleT)
fmt.Println("roleS: ", roleY)
h.a.Len(rbac.Global().FindRulesByRoleID(roleS), 0)
h.a.Len(rbac.Global().FindRulesByRoleID(roleT), 0)
h.a.Len(rbac.Global().FindRulesByRoleID(roleY), 0)