enable PersistentVolumeLastPhaseTransitionTime feature gate for status update test

This commit is contained in:
Roman Bednar 2023-10-26 11:44:57 +02:00
parent 071a67d8c2
commit 53339894a1

View File

@ -17,6 +17,9 @@ limitations under the License.
package storage
import (
utilfeature "k8s.io/apiserver/pkg/util/feature"
featuregatetesting "k8s.io/component-base/featuregate/testing"
"k8s.io/kubernetes/pkg/features"
"testing"
"github.com/google/go-cmp/cmp"
@ -166,6 +169,7 @@ func TestWatch(t *testing.T) {
}
func TestUpdateStatus(t *testing.T) {
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.PersistentVolumeLastPhaseTransitionTime, true)()
storage, statusStorage, server := newStorage(t)
defer server.Terminate(t)
defer storage.Store.DestroyFunc()