Skip to content

Commit

Permalink
fix unit
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Dec 21, 2023
1 parent 6afbfac commit 12fc31f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/services/blockchain/eth/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestResolve_Success(t *testing.T) {
gistInfo := contract.SmtRootInfo{Root: big.NewInt(555)}
c.EXPECT().GetGISTRootInfo(gomock.Any(), big.NewInt(4)).Return(gistInfo, nil)
stateInfo := contract.StateV2StateInfo{Id: userDID.ID.BigInt(), State: big.NewInt(444)}
c.EXPECT().GetStateInfoByIdAndState(gomock.Any(), big.NewInt(5), big.NewInt(5)).Return(stateInfo, nil)
c.EXPECT().GetStateInfoByIdAndState(gomock.Any(), userDID.ID.BigInt(), big.NewInt(5)).Return(stateInfo, nil)
},
expectedIdentityState: services.IdentityState{
StateInfo: &services.StateInfo{
Expand All @@ -112,7 +112,7 @@ func TestResolve_Success(t *testing.T) {
userDID: userDID,
contractMock: func(c *cm.MockStateContract) {
res := contract.StateV2StateInfo{Id: userDID.ID.BigInt(), State: big.NewInt(555)}
c.EXPECT().GetStateInfoByIdAndState(gomock.Any(), big.NewInt(1), big.NewInt((5))).Return(res, nil)
c.EXPECT().GetStateInfoByIdAndState(gomock.Any(), userDID.ID.BigInt(), big.NewInt((1))).Return(res, nil)
},
expectedIdentityState: services.IdentityState{
StateInfo: &services.StateInfo{
Expand Down

0 comments on commit 12fc31f

Please sign in to comment.