diff --git a/datastores_changes.go b/datastores_changes.go index d507f03..b97c6a7 100644 --- a/datastores_changes.go +++ b/datastores_changes.go @@ -332,10 +332,10 @@ func (ds *Datastore) validateChange(c *change) error { maxIndex++ } if op.Index > maxIndex { - return fmt.Errorf("out of bound access index %d on [0:%s]", op.Index, maxIndex) + return fmt.Errorf("out of bound access index %d on [0:%d]", op.Index, maxIndex) } if op.Index2 > maxIndex { - return fmt.Errorf("out of bound access index %d on [0:%s]", op.Index, maxIndex) + return fmt.Errorf("out of bound access index %d on [0:%d]", op.Index, maxIndex) } } } diff --git a/datastores_test.go b/datastores_test.go index 3707240..e153528 100644 --- a/datastores_test.go +++ b/datastores_test.go @@ -247,12 +247,12 @@ func TestUnmarshalAwait(t *testing.T) { res = tmp.Deltas } if len(res) != len(expected) { - t.Fatalf("got %d results expected %s", len(res), len(expected)) + t.Fatalf("got %d results expected %d", len(res), len(expected)) } for i, d := range res { ed := expected[i] if d.Revision != ed.Revision { - t.Errorf("wrong revision got %d expected %s", d.Revision, expected[i].Revision) + t.Errorf("wrong revision got %d expected %d", d.Revision, expected[i].Revision) } for j, c := range d.Changes { if !c.equals(ed.Changes[j]) {