test: ensure consistency of update multiple sequences test (#3501)

This commit is contained in:
Livio Amstutz
2022-04-26 19:41:11 +00:00
committed by GitHub
parent e9e332b909
commit b867eff84c
2 changed files with 64 additions and 19 deletions
@@ -1558,6 +1558,10 @@ func TestStatementHandler_updateCurrentSequence(t *testing.T) {
sequence: 6,
instanceID: "instanceID",
},
{
sequence: 10,
instanceID: "instanceID2",
},
},
},
},
@@ -1566,7 +1570,7 @@ func TestStatementHandler_updateCurrentSequence(t *testing.T) {
return err == nil
},
expectations: []mockExpectation{
expectUpdateTwoCurrentSequence("my_table", "my_projection", currentSequences{
expectUpdateThreeCurrentSequence(t, "my_table", "my_projection", currentSequences{
"agg": []*instanceSequence{
{
sequence: 5,
@@ -1578,6 +1582,10 @@ func TestStatementHandler_updateCurrentSequence(t *testing.T) {
sequence: 6,
instanceID: "instanceID",
},
{
sequence: 10,
instanceID: "instanceID2",
},
},
}),
},