Skip to content

Commit a17e3f2

Browse files
committed
fixes go tests
1 parent 71c123a commit a17e3f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/storage/storage_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ var _ = Describe("storage package", func() {
4848
st2 := testing.ParseTime("0001-01-01-00:00:00")
4949
et2 := testing.ParseTime("0001-01-01-00:00:30")
5050
key, _ := ParseKey("foo")
51-
err := s.Put(st, et, key, tree)
51+
err := s.Put(st, et, key, tree, "testspy", 100)
5252
Expect(err).ToNot(HaveOccurred())
5353

54-
t2, _, err := s.Get(st2, et2, key)
54+
t2, _, _, _, err := s.Get(st2, et2, key)
5555
Expect(err).ToNot(HaveOccurred())
5656
Expect(t2).ToNot(BeNil())
5757

@@ -61,7 +61,7 @@ var _ = Describe("storage package", func() {
6161

6262
s2, err = New(cfg)
6363

64-
t3, _, err := s2.Get(st2, et2, key)
64+
t3, _, _, _, err := s2.Get(st2, et2, key)
6565
Expect(err).ToNot(HaveOccurred())
6666
Expect(t3).ToNot(BeNil())
6767

pkg/storage/tree/tree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (t *Tree) String() string {
9494
res := ""
9595
t.iterate(func(k []byte, v uint64) {
9696
if v > 0 {
97-
res += fmt.Sprintf("%q %d\n", k, v)
97+
res += fmt.Sprintf("%q %d\n", k[2:], v)
9898
}
9999
})
100100

0 commit comments

Comments
 (0)