Skip to content

Commit

Permalink
test: Fix query test failure for validator power
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Dec 12, 2024
1 parent c1a205d commit b17d8aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Libplanet.Explorer.Tests/GraphTypes/BlockTypeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public async void Query()
{ "blockHash", lastVotes[0].BlockHash.ToString() },
{ "timestamp", new DateTimeOffsetGraphType().Serialize(lastVotes[0].Timestamp) },
{ "validatorPublicKey", lastVotes[0].ValidatorPublicKey.ToString() },
{ "validatorPower", lastVotes[0].ValidatorPower },
{ "validatorPower", lastVotes[0].ValidatorPower?.ToString() },
{ "flag", lastVotes[0].Flag.ToString() },
{ "signature", ByteUtil.Hex(lastVotes[0].Signature) },
}
Expand Down
2 changes: 1 addition & 1 deletion test/Libplanet.Explorer.Tests/GraphTypes/VoteTypeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async void Query()
Assert.Equal(vote.BlockHash.ToString(), resultData["blockHash"]);
Assert.Equal(new DateTimeOffsetGraphType().Serialize(vote.Timestamp), resultData["timestamp"]);
Assert.Equal(vote.ValidatorPublicKey.ToString(), resultData["validatorPublicKey"]);
Assert.Equal(vote.ValidatorPower, resultData["validatorPower"]);
Assert.Equal(vote.ValidatorPower?.ToString(), resultData["validatorPower"]);
Assert.Equal(vote.Flag.ToString(), resultData["flag"]);
Assert.Equal(ByteUtil.Hex(vote.Signature), resultData["signature"]);
}
Expand Down

0 comments on commit b17d8aa

Please sign in to comment.