Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
  • Loading branch information
Kavindu-Dodan committed Jun 27, 2024
1 parent 8acac51 commit 5f22ef9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions core/pkg/sync/kubernetes/kubernetes_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func Test_updateFuncHandler(t *testing.T) {

func TestSync_fetch(t *testing.T) {
flagSpec := v1beta1.FlagSpec{
Flags: map[string]v1beta1.Flag{},
Flags: v1beta1.Flags{FlagsMap: map[string]v1beta1.Flag{}},
}

validCfg := v1beta1.FeatureFlag{
Expand Down Expand Up @@ -477,7 +477,7 @@ func TestSync_fetch(t *testing.T) {
func TestSync_watcher(t *testing.T) {
flagSpec := v1beta1.FeatureFlagSpec{
FlagSpec: v1beta1.FlagSpec{
Flags: map[string]v1beta1.Flag{},
Flags: v1beta1.Flags{FlagsMap: map[string]v1beta1.Flag{}},
},
}

Expand Down Expand Up @@ -854,9 +854,11 @@ func TestMeasure(t *testing.T) {
res, err := marshallFeatureFlagSpec(&v1beta1.FeatureFlag{
Spec: v1beta1.FeatureFlagSpec{
FlagSpec: v1beta1.FlagSpec{
Flags: map[string]v1beta1.Flag{
"flag": {
DefaultVariant: "kubernetes",
Flags: v1beta1.Flags{
FlagsMap: map[string]v1beta1.Flag{
"flag": {
DefaultVariant: "kubernetes",
},
},
},
},
Expand Down

0 comments on commit 5f22ef9

Please sign in to comment.