Skip to content

Commit 83f710b

Browse files
lilicestroz
authored andcommitted
Makefile: Run unit tests in internal dir (#1269)
internal/../crd_test.go: Adjust test after move to internal directory.
1 parent eea4261 commit 83f710b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ test/sanity:
8787
test/unit:
8888
$(Q)go test -count=1 -short ./cmd/...
8989
$(Q)go test -count=1 -short ./pkg/...
90+
$(Q)go test -count=1 -short ./internal/...
9091

9192
test/subcommand: test/subcommand/test-local test/subcommand/scorecard
9293

internal/pkg/scaffold/crd_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestCRDGoProject(t *testing.T) {
3737
// Set the project and repo paths to {abs}/test/test-framework, which
3838
// contains pkg/apis for the memcached-operator.
3939
tfDir := filepath.Join("test", "test-framework")
40-
pkgIdx := strings.Index(absPath, "pkg")
40+
pkgIdx := strings.Index(absPath, "internal/pkg")
4141
cfg := &input.Config{
4242
Repo: filepath.Join(absPath[strings.Index(absPath, "github.com"):pkgIdx], tfDir),
4343
AbsProjectPath: filepath.Join(absPath[:pkgIdx], tfDir),

0 commit comments

Comments
 (0)