Remove metadata from feature manager (#3046)
This commit is contained in:
1 parent
54aad4d292
commit
4d19d1cfc4
3 files changed
+41
-91
No files matched your search
+2
-5
@@ -33,14 +33,11 @@ func EnableFeatureOnVersionForTest(t *testing.T, version *gvers.Version, feature
|
||||
newConstraint, err := gvers.NewConstraint(fmt.Sprintf(">= %s", versionNumber))
|
||||
require.NoError(err)
|
||||
|
||||
meta := metadataStringToMetadata(version.Metadata())
|
||||
featureMap[feature] = MetadataConstraint{
|
||||
MetaInfo: []Metadata{meta},
|
||||
Constraints: newConstraint,
|
||||
}
|
||||
|
||||
resetFunc := func() {
|
||||
t.Cleanup(func() {
|
||||
featureMap[feature] = featConstraint
|
||||
}
|
||||
t.Cleanup(resetFunc)
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user