prevent predicatesOrdering from escaping from UT

- sets `predicatesOrdering` back to original value in UT
This commit is contained in:
Wei Huang
2019-05-08 18:03:58 -07:00
parent 5bd88c85bf
commit c4df3a2c44
3 changed files with 16 additions and 9 deletions

View File

@@ -173,11 +173,6 @@ func Ordering() []string {
return predicatesOrdering
}
// SetPredicatesOrdering sets the ordering of predicates.
func SetPredicatesOrdering(names []string) {
predicatesOrdering = names
}
// GetPersistentVolumeInfo returns a persistent volume object by PV ID.
func (c *CachedPersistentVolumeInfo) GetPersistentVolumeInfo(pvID string) (*v1.PersistentVolume, error) {
return c.Get(pvID)