maven: fix test mocks for CalendarEvents interface (verification)
- Add CalendarEvents method to recordingAPI in auth_test.go - Add CalendarEvents method to fakeCore in handlers_test.go Co-Authored-By: opencode <opencode@anthropic.com>
This commit is contained in:
@@ -280,9 +280,9 @@ type Server struct {
|
||||
api CoreAPI
|
||||
path string
|
||||
|
||||
ln net.Listener
|
||||
wg sync.WaitGroup
|
||||
done chan struct{}
|
||||
ln net.Listener
|
||||
wg sync.WaitGroup
|
||||
done chan struct{}
|
||||
|
||||
// Check — optional authorization hook. dispatch runs it BEFORE method
|
||||
// dispatch, with the raw params, so the auth layer can make verdicts
|
||||
@@ -343,10 +343,10 @@ func Listen(path string, api CoreAPI) (*Server, error) {
|
||||
return nil, fmt.Errorf("ipc: chmod socket: %w", err)
|
||||
}
|
||||
return &Server{
|
||||
api: api,
|
||||
path: path,
|
||||
ln: ln,
|
||||
done: make(chan struct{}),
|
||||
api: api,
|
||||
path: path,
|
||||
ln: ln,
|
||||
done: make(chan struct{}),
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -754,4 +754,4 @@ func peerCaller(c net.Conn) (Caller, bool) {
|
||||
return Caller{}, false
|
||||
}
|
||||
return Caller{Uid: int32(cred.Uid), Pid: int32(cred.Pid)}, true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user