Skip to content

Commit

Permalink
fix: removed duplicate import
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Dec 19, 2024
1 parent 06a69ca commit 0a73c1d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/k8s/replicaset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"

appsv1 "k8s.io/api/apps/v1"
appv1 "k8s.io/api/apps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -46,7 +45,7 @@ func (s *TestSuite) TestCreateReplicaSet() {
if !ok {
return false, nil, fmt.Errorf("expected PatchAction, got %T", action)
}
return true, &appsv1.ReplicaSet{
return true, &appv1.ReplicaSet{
ObjectMeta: metav1.ObjectMeta{
Name: patchAction.GetName(),
Namespace: patchAction.GetNamespace(),
Expand Down Expand Up @@ -136,7 +135,7 @@ func (s *TestSuite) TestReplaceReplicaSetWithGracePeriod() {
if !ok {
return false, nil, fmt.Errorf("expected PatchAction, got %T", action)
}
return true, &appsv1.ReplicaSet{
return true, &appv1.ReplicaSet{
ObjectMeta: metav1.ObjectMeta{
Name: patchAction.GetName(),
Namespace: patchAction.GetNamespace(),
Expand Down Expand Up @@ -226,7 +225,7 @@ func (s *TestSuite) TestReplaceReplicaSet() {
if !ok {
return false, nil, fmt.Errorf("expected PatchAction, got %T", action)
}
return true, &appsv1.ReplicaSet{
return true, &appv1.ReplicaSet{
ObjectMeta: metav1.ObjectMeta{
Name: patchAction.GetName(),
Namespace: patchAction.GetNamespace(),
Expand Down

0 comments on commit 0a73c1d

Please sign in to comment.