Skip to content

Commit 2d38d67

Browse files
committed
fixup! Add test cases for implicit container contribution feature
1 parent 066a9af commit 2d38d67

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/library/flatten/flatten_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package flatten
1717

1818
import (
1919
"context"
20+
"fmt"
2021
"testing"
2122

2223
"github.com/devfile/devworkspace-operator/pkg/library/flatten/internal/testutil"
@@ -242,6 +243,10 @@ func TestMergeImplicitContainerContributions(t *testing.T) {
242243
assert.True(t, len(tt.Input.DevWorkspace.Components) > 0, "Test case defines workspace with no components")
243244
testResolverTools := getTestingTools(tt.Input, "test-ignored")
244245

246+
if tt.Name == "Opt in for second component" {
247+
fmt.Print("test")
248+
}
249+
245250
outputWorkspace, _, err := ResolveDevWorkspace(tt.Input.DevWorkspace, nil, testResolverTools)
246251
if tt.Output.ErrRegexp != nil && assert.Error(t, err) {
247252
assert.Regexp(t, *tt.Output.ErrRegexp, err.Error(), "Error message should match")

0 commit comments

Comments
 (0)