open-feature/flagd

[CHORE] grpc_sync.go is hard to test

Fermée

#1 562 ouverte le 14 févr. 2025

 (1 commentaire) (2 réactions) (0 personne assignée)Go (118 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (925 étoiles)
Métriques de merge PR
 (Merge moyen 3j 9h) (8 PRs mergées en 30 j)

Description

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.

Guide contributeur