Skip to content

Commit 21f2a33

Browse files
committed
fix: unit tests
1 parent 9140be1 commit 21f2a33

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

universalClient/pushsigner/pushsigner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func TestSigner_VoteInbound(t *testing.T) {
147147
// TestSigner_VoteChainMeta tests the VoteChainMeta method signature.
148148
func TestSigner_VoteChainMeta(t *testing.T) {
149149
t.Run("method exists", func(t *testing.T) {
150-
// Method signature: VoteChainMeta(ctx context.Context, chainID string, price uint64, chainHeight uint64, observedAt uint64) (string, error)
150+
// Method signature: VoteChainMeta(ctx context.Context, chainID string, price uint64, chainHeight uint64) (string, error)
151151
assert.True(t, true)
152152
})
153153
}

universalClient/pushsigner/vote_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,18 @@ func TestMsgVoteChainMetaConstruction(t *testing.T) {
6565
chainID := "eip155:1"
6666
price := uint64(20000000000)
6767
chainHeight := uint64(18500000)
68-
observedAt := uint64(1700000001)
6968

7069
msg := &uexecutortypes.MsgVoteChainMeta{
7170
Signer: granter,
7271
ObservedChainId: chainID,
7372
Price: price,
7473
ChainHeight: chainHeight,
75-
ObservedAt: observedAt,
7674
}
7775

7876
assert.Equal(t, granter, msg.Signer)
7977
assert.Equal(t, chainID, msg.ObservedChainId)
8078
assert.Equal(t, price, msg.Price)
8179
assert.Equal(t, chainHeight, msg.ChainHeight)
82-
assert.Equal(t, observedAt, msg.ObservedAt)
8380
})
8481

8582
t.Run("MsgVoteChainMeta with zero values", func(t *testing.T) {
@@ -88,11 +85,9 @@ func TestMsgVoteChainMetaConstruction(t *testing.T) {
8885
ObservedChainId: "eip155:1",
8986
Price: 0,
9087
ChainHeight: 0,
91-
ObservedAt: 0,
9288
}
9389
assert.Equal(t, uint64(0), msg.Price)
9490
assert.Equal(t, uint64(0), msg.ChainHeight)
95-
assert.Equal(t, uint64(0), msg.ObservedAt)
9691
})
9792
}
9893

0 commit comments

Comments
 (0)