mirror of https://github.com/knative/pkg.git
make the rt error message clearer (#1492)
This commit is contained in:
parent
858f1a7b0d
commit
cb1281d05c
|
|
@ -67,7 +67,7 @@ type CloudEventOverrides struct {
|
|||
// SourceStatus shows how we expect folks to embed Addressable in
|
||||
// their Status field.
|
||||
type SourceStatus struct {
|
||||
// inherits duck/v1beta1 Status, which currently provides:
|
||||
// inherits Status, which currently provides:
|
||||
// * ObservedGeneration - the 'Generation' of the Service that was last
|
||||
// processed by the controller.
|
||||
// * Conditions - the latest available observations of a resource's current
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ func roundTripViaHub(t *testing.T, gvk schema.GroupVersionKind, scheme, hubs *ru
|
|||
obj = obj.DeepCopyObject().(convertibleObject)
|
||||
|
||||
if !apiequality.Semantic.DeepEqual(original, obj) {
|
||||
t.Errorf("DeepCopy altered the object, diff: %v", diff(original, obj))
|
||||
t.Errorf("DeepCopy modified the original object (DeepCopy should not have side-effects), diff: %v", diff(original, obj))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -178,7 +178,7 @@ func roundTripViaHub(t *testing.T, gvk schema.GroupVersionKind, scheme, hubs *ru
|
|||
}
|
||||
|
||||
if !apiequality.Semantic.DeepEqual(original, obj) {
|
||||
t.Errorf("Conversion to hub (%s) alterted the object, diff: %v", hubGVK, diff(original, obj))
|
||||
t.Errorf("Conversion to hub (%s) modified the original object (ConvertFrom should not have side-effects), diff: %v", hubGVK, diff(original, obj))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue