File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ import (
27
27
// as only the first db call will be made. But it is better than nothing.
28
28
func TestAuthzQueryRecursive (t * testing.T ) {
29
29
t .Parallel ()
30
- q := authzquery .NewAuthzQuerier (databasefake .New (), & coderdtest.RecordingAuthorizer {})
30
+ q := authzquery .NewAuthzQuerier (databasefake .New (), & coderdtest.RecordingAuthorizer {
31
+ Wrapped : & coderdtest.FakeAuthorizer {AlwaysReturn : nil },
32
+ })
31
33
actor := rbac.Subject {
32
34
ID : uuid .NewString (),
33
35
Roles : rbac.RoleNames {rbac .RoleOwner ()},
@@ -46,7 +48,10 @@ func TestAuthzQueryRecursive(t *testing.T) {
46
48
if method .Name == "InTx" || method .Name == "Ping" {
47
49
continue
48
50
}
49
- t .Logf (method .Name , method .Type .NumIn (), len (ins ))
51
+ // Log the name of the last method, so if there is a panic, it is
52
+ // easy to know which method failed.
53
+ t .Log (method .Name )
54
+ // Call the function. Any infinite recursion will stack overflow.
50
55
reflect .ValueOf (q ).Method (i ).Call (ins )
51
56
}
52
57
}
You can’t perform that action at this time.
0 commit comments