mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Clean up commented assertions in tests
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
This commit is contained in:
		| @@ -292,10 +292,6 @@ func TestBadJSONRejection(t *testing.T) { | ||||
| 	if _, err1 := runtime.Decode(legacyscheme.Codecs.LegacyCodec(v1.SchemeGroupVersion), badJSONUnknownType); err1 == nil { | ||||
| 		t.Errorf("Did not reject despite use of unknown type: %s", badJSONUnknownType) | ||||
| 	} | ||||
| 	/*badJSONKindMismatch := []byte(`{"kind": "Pod"}`) | ||||
| 	if err2 := DecodeInto(badJSONKindMismatch, &Node{}); err2 == nil { | ||||
| 		t.Errorf("Kind is set but doesn't match the object type: %s", badJSONKindMismatch) | ||||
| 	}*/ | ||||
| } | ||||
|  | ||||
| // TestUnversionedTypes establishes that the default codec can encode and | ||||
|   | ||||
| @@ -263,10 +263,6 @@ func TestBadJSONRejection(t *testing.T) { | ||||
| 	if _, err1 := runtime.Decode(jsonserializer, badJSONUnknownType); err1 == nil { | ||||
| 		t.Errorf("Did not reject despite use of unknown type: %s", badJSONUnknownType) | ||||
| 	} | ||||
| 	/*badJSONKindMismatch := []byte(`{"kind": "Pod"}`) | ||||
| 	if err2 := DecodeInto(badJSONKindMismatch, &Node{}); err2 == nil { | ||||
| 		t.Errorf("Kind is set but doesn't match the object type: %s", badJSONKindMismatch) | ||||
| 	}*/ | ||||
| } | ||||
|  | ||||
| func TestExternalToInternalMapping(t *testing.T) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ialidzhikov
					ialidzhikov