Skip to content

Commit

Permalink
Remove timezone from marshal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmanb committed May 24, 2017
1 parent 333d2fc commit 388cba6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions go/pods_test.go
Expand Up @@ -97,17 +97,16 @@ func TestPodSexp(t *testing.T) {
Image: strPtr("aimage"),
RestartCount: &[]int32{10}[0],
}},
HostIP: strPtr("123"),
PodIP: strPtr("456"),
StartTime: &meta.Time{},
Phase: strPtr("Starting"),
HostIP: strPtr("123"),
PodIP: strPtr("456"),
Phase: strPtr("Starting"),
},
}
result, err := sexp.Marshal(&pod)
if err != nil {
t.Error(err)
}
expected := "((metadata . ((name . \"aname\")(namespace . \"space\")(labels . ((\"t1\" . \"v1\")))))(status . ((phase . \"Starting\")(hostIP . \"123\")(podIP . \"456\")(startTime . \"1970-01-01T12:00:00+12:00\")(containerStatuses . [((name . \"thename\")(restartCount . 10)(image . \"aimage\"))]))))"
expected := "((metadata . ((name . \"aname\")(namespace . \"space\")(labels . ((\"t1\" . \"v1\")))))(status . ((phase . \"Starting\")(hostIP . \"123\")(podIP . \"456\")(containerStatuses . [((name . \"thename\")(restartCount . 10)(image . \"aimage\"))]))))"
assert.Equal(t, expected, string(result))
}

Expand Down

0 comments on commit 388cba6

Please sign in to comment.