Use the auth methods to get IDs to avoid unneeded casts

This commit is contained in:
kolaente 2019-06-28 10:21:48 +02:00
parent fc3c5f2187
commit f1d21ea52b
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
25 changed files with 65 additions and 146 deletions

View file

@ -96,7 +96,10 @@ func TestLabel_ReadAll(t *testing.T) {
},
},
{
name: "invalid user",
name: "invalid user",
args: args{
a: &User{ID: -1},
},
wantErr: true,
},
}