address lavalamp's comment on using testapi instead of latest, and adding comments for public method.

This commit is contained in:
Chao Xu
2015-09-12 15:43:33 -07:00
parent f5023929d8
commit ca803fc504
4 changed files with 7 additions and 2 deletions

View File

@@ -46,6 +46,8 @@ func TestResourceVersioner(t *testing.T) {
func TestCodec(t *testing.T) {
pod := internal.Pod{}
// We do want to use package latest rather than testapi here, because we
// want to test if the package install and package latest work as expected.
data, err := latest.GroupOrDie("").Codec.Encode(&pod)
if err != nil {
t.Fatalf("unexpected error: %v", err)