Skip to content

Commit

Permalink
Initialize shard correctly in ExecutionMutableStateSuite (#2336)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 authored Dec 30, 2021
1 parent 1e02664 commit 633e456
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common/persistence/tests/execution_mutable_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ func (s *ExecutionMutableStateSuite) SetupTest() {
},
})
s.NoError(err)
previousRangeID := resp.ShardInfo.RangeId
resp.ShardInfo.RangeId += 1
err = s.shardManager.UpdateShard(&p.UpdateShardRequest{
ShardInfo: resp.ShardInfo,
PreviousRangeID: previousRangeID,
})
s.NoError(err)
s.rangeID = resp.ShardInfo.RangeId

s.namespaceID = uuid.New().String()
Expand Down

0 comments on commit 633e456

Please sign in to comment.