Skip to content

Commit ead0cff

Browse files
author
Arvind Thirumurugan
committed
move util UT to test directory
1 parent b62b1c4 commit ead0cff

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package utils
17+
package crdinstaller
1818

1919
import (
2020
"os"
2121
"testing"
2222

2323
"github.com/google/go-cmp/cmp"
24+
25+
cmdCRDInstaller "go.goms.io/fleet/cmd/crdinstaller/utils"
2426
)
2527

2628
// Test using the actual config/crd/bases directory
@@ -106,7 +108,7 @@ func TestCollectCRDFileNamesWithActualPath(t *testing.T) {
106108
for _, tt := range tests {
107109
t.Run(tt.name, func(t *testing.T) {
108110
// Call the function
109-
gotCRDFiles, err := CollectCRDFileNames(realCRDPath, tt.mode, tt.enablev1beta1API, tt.enablev1alpha1API)
111+
gotCRDFiles, err := cmdCRDInstaller.CollectCRDFileNames(realCRDPath, tt.mode, tt.enablev1alpha1API, tt.enablev1beta1API)
110112
if (err != nil) != tt.wantError {
111113
t.Errorf("collectCRDFileNames() error = %v, wantError %v", err, tt.wantError)
112114
}

0 commit comments

Comments
 (0)