Skip to content

Commit 1f5c005

Browse files
committed
Fix failed unit tests
1 parent 24cac8b commit 1f5c005

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

pkg/apps/apis/apps/log_options_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestLogOptionsDrift(t *testing.T) {
1616
name := popts.Field(i).Name
1717
doptsField, found := dopts.FieldByName(name)
1818
// TODO: Add this option to deployment config log options
19-
if name == "InsecureSkipTLSVerifyBackend" {
19+
if name == "InsecureSkipTLSVerifyBackend" || name == "Stream" {
2020
continue
2121
}
2222
if !found {

pkg/build/apis/build/log_options_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ func TestLogOptionsDrift(t *testing.T) {
1515
// Verify name
1616
name := popts.Field(i).Name
1717
boptsField, found := bopts.FieldByName(name)
18+
if name == "Stream" {
19+
continue
20+
}
1821
if !found {
1922
t.Errorf("buildLogOptions drifting from podLogOptions! Field %q wasn't found!", name)
2023
}

pkg/build/apis/build/validation/validation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3884,7 +3884,7 @@ func TestValidateBuildVolumes(t *testing.T) {
38843884
},
38853885
},
38863886
},
3887-
errors: []string{"must have at most 63 bytes"},
3887+
errors: []string{"Too long: may not be more than 63 bytes"},
38883888
},
38893889
{
38903890
name: "csi driver name that is not a DNS 1123 subdomain should fail",

0 commit comments

Comments
 (0)