Skip to content

Commit

Permalink
client: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
suyash committed Aug 6, 2016
1 parent 6409525 commit 990f035
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ func TestTocCountAndLength(t *testing.T) {
t.Errorf("expected tocCount to be 3, got %v", c.tocCount())
}

var MetricLength = Metric1Length
if c.r.version2 {
MetricLength = Metric2Length
}

expectedLength = HeaderLength + 3*TocLength + 1*MetricLength + 1*ValueLength + 1*StringLength
if c.Length() != expectedLength {
t.Errorf("expected Length to be %v, got %v", expectedLength, c.Length())
Expand Down

0 comments on commit 990f035

Please sign in to comment.