mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-05 15:23:27 +00:00
feat: improve test coverage for pulse-sensor-proxy
This commit is contained in:
parent
fd7e80ae17
commit
5d4e911298
7 changed files with 1349 additions and 142 deletions
|
|
@ -9,8 +9,8 @@ import (
|
|||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
// extractPeerCredentials is a stub for non-Linux systems
|
||||
func extractPeerCredentials(conn net.Conn) (*peerCredentials, error) {
|
||||
// defaultExtractPeerCredentials is a stub for non-Linux systems
|
||||
func defaultExtractPeerCredentials(conn net.Conn) (*peerCredentials, error) {
|
||||
// On non-Linux systems (like macOS dev), we can't easily get the peer credentials
|
||||
// from the socket. For development purposes, we'll assume the connection
|
||||
// comes from the current user.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue