open-feature/flagd

[CHORE] grpc_sync.go is hard to test

Chiusa

#1562 aperta il 14 feb 2025

 (1 commento) (2 reazioni) (0 assegnatari)Go (118 fork)github user discovery
help wanted

Metriche repository

Star
 (925 stelle)
Metriche merge PR
 (Merge medio 3g 9h) (8 PR mergiate in 30 g)

Descrizione

https://github.com/open-feature/flagd/blob/main/core/pkg/sync/grpc/grpc_sync.go makes calls to grpc (e.g. NewClient) and different parameters are set based on grpc.Sync configuration. Ideally, we would test whether than configuration affects the calls to grpc, for example by using mocks.

Guida contributor