mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Fix address null bug.
This commit is contained in:
@ -91,8 +91,8 @@ func TestGetMaskedUsers(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
name: "1",
|
||||
args: args{users: []*User{{Password: "casdoor"},{Password: "casbin"}}},
|
||||
want: []*User{{Password: "***"},{Password: "***"}},
|
||||
args: args{users: []*User{{Password: "casdoor"}, {Password: "casbin"}}},
|
||||
want: []*User{{Password: "***"}, {Password: "***"}},
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
@ -102,4 +102,4 @@ func TestGetMaskedUsers(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user