mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 06:07:33 +00:00
fix(eventstore): use decimal, correct mirror (#9905)
back port #9812, #9878, #9881, #9884 --------- Co-authored-by: Livio Spring <livio.a@gmail.com> Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,8 @@ import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
"testing"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -87,7 +89,7 @@ func Test_CurrentSequencesPrepares(t *testing.T) {
|
||||
State: State{
|
||||
EventCreatedAt: testNow,
|
||||
LastRun: testNow,
|
||||
Position: 20211108,
|
||||
Position: decimal.NewFromInt(20211108),
|
||||
AggregateID: "agg-id",
|
||||
AggregateType: "agg-type",
|
||||
Sequence: 20211108,
|
||||
@@ -134,7 +136,7 @@ func Test_CurrentSequencesPrepares(t *testing.T) {
|
||||
ProjectionName: "projection-name",
|
||||
State: State{
|
||||
EventCreatedAt: testNow,
|
||||
Position: 20211108,
|
||||
Position: decimal.NewFromInt(20211108),
|
||||
LastRun: testNow,
|
||||
AggregateID: "agg-id",
|
||||
AggregateType: "agg-type",
|
||||
@@ -145,7 +147,7 @@ func Test_CurrentSequencesPrepares(t *testing.T) {
|
||||
ProjectionName: "projection-name2",
|
||||
State: State{
|
||||
EventCreatedAt: testNow,
|
||||
Position: 20211108,
|
||||
Position: decimal.NewFromInt(20211108),
|
||||
LastRun: testNow,
|
||||
AggregateID: "agg-id",
|
||||
AggregateType: "agg-type",
|
||||
|
Reference in New Issue
Block a user