Skip to content

Commit

Permalink
address
Browse files Browse the repository at this point in the history
  • Loading branch information
nolouch committed May 18, 2017
1 parent 458a3a3 commit 7dd3a31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (s *testClusterInfo) TestGetClusterStatus(c *C) {
url := fmt.Sprintf("%s/cluster/status", s.urlPrefix)
status := server.ClusterStatus{}
err := readJSONWithURL(url, &status)
c.Assert(status.RaftBootstrapTime, Equals, time.Time{})
c.Assert(status.RaftBootstrapTime.IsZero(), IsTrue)
now := time.Now()
mustBootstrapCluster(c, s.svr)
err = readJSONWithURL(url, &status)
Expand Down
4 changes: 4 additions & 0 deletions server/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ func (s *testUtilSuite) TestParseTimestap(c *C) {
c.Assert(err, IsNil)
c.Assert(nt, Equals, t)
}
data := []byte("pd")
nt, err := parseTimestamp(data)
c.Assert(err, NotNil)
c.Assert(nt.Equal(zeroTime), IsTrue)
}

0 comments on commit 7dd3a31

Please sign in to comment.