mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
commit
de3a3357e9
@ -132,7 +132,7 @@ func TestTimeMarshalJSONUnmarshalYAML(t *testing.T) {
|
|||||||
var result TimeHolder
|
var result TimeHolder
|
||||||
err = yaml.Unmarshal(jsonMarshalled, &result)
|
err = yaml.Unmarshal(jsonMarshalled, &result)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("2: Failed to unmarshall '%+v': %v", string(jsonMarshalled), err)
|
t.Errorf("2: Failed to unmarshal '%+v': %v", string(jsonMarshalled), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !reflect.DeepEqual(input, result) {
|
if !reflect.DeepEqual(input, result) {
|
||||||
|
@ -190,7 +190,7 @@ func TestIntOrStringMarshalJSONUnmarshalYAML(t *testing.T) {
|
|||||||
var result IntOrStringHolder
|
var result IntOrStringHolder
|
||||||
err = yaml.Unmarshal(jsonMarshalled, &result)
|
err = yaml.Unmarshal(jsonMarshalled, &result)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("2: Failed to unmarshall '%+v': %v", string(jsonMarshalled), err)
|
t.Errorf("2: Failed to unmarshal '%+v': %v", string(jsonMarshalled), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !reflect.DeepEqual(input, result) {
|
if !reflect.DeepEqual(input, result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user