You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kube-derive/tests/crd_mixed_enum_test.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,13 +53,13 @@ fn print_crds() {
53
53
}
54
54
55
55
#[test]
56
-
#[should_panic = "Enum variant set [String(\"A\")] has type Single(String) but was already defined as Some(Single(Object)). The instance type must be equal for all subschema variants."]
56
+
#[should_panic = "oneOf variants must all have the same type"]
57
57
fninvalid_enum_1(){
58
58
InvalidEnum1::crd();
59
59
}
60
60
61
61
#[test]
62
-
#[should_panic = "Enum variant set [String(\"A\")] has type Single(String) but was already defined as Some(Single(Object)). The instance type must be equal for all subschema variants."]
62
+
#[should_panic = "oneOf variants must all have the same type"]
63
63
fninvalid_enum_2(){
64
64
InvalidEnum2::crd();
65
65
}
@@ -222,7 +222,7 @@ fn valid_enum_4() {
222
222
}
223
223
224
224
#[test]
225
-
#[should_panic = "Enum variant set [String(\"A\")] has type Single(String) but was already defined as Some(Single(Object)). The instance type must be equal for all subschema variants."]
225
+
#[should_panic = "oneOf variants must all have the same type"]
0 commit comments