File tree 2 files changed +2
-2
lines changed
test/Libplanet.Explorer.Tests/GraphTypes
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public async void Query()
122
122
{ "blockHash" , lastVotes [ 0 ] . BlockHash . ToString ( ) } ,
123
123
{ "timestamp" , new DateTimeOffsetGraphType ( ) . Serialize ( lastVotes [ 0 ] . Timestamp ) } ,
124
124
{ "validatorPublicKey" , lastVotes [ 0 ] . ValidatorPublicKey . ToString ( ) } ,
125
- { "validatorPower" , lastVotes [ 0 ] . ValidatorPower } ,
125
+ { "validatorPower" , lastVotes [ 0 ] . ValidatorPower ? . ToString ( ) } ,
126
126
{ "flag" , lastVotes [ 0 ] . Flag . ToString ( ) } ,
127
127
{ "signature" , ByteUtil . Hex ( lastVotes [ 0 ] . Signature ) } ,
128
128
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public async void Query()
57
57
Assert . Equal ( vote . BlockHash . ToString ( ) , resultData [ "blockHash" ] ) ;
58
58
Assert . Equal ( new DateTimeOffsetGraphType ( ) . Serialize ( vote . Timestamp ) , resultData [ "timestamp" ] ) ;
59
59
Assert . Equal ( vote . ValidatorPublicKey . ToString ( ) , resultData [ "validatorPublicKey" ] ) ;
60
- Assert . Equal ( vote . ValidatorPower , resultData [ "validatorPower" ] ) ;
60
+ Assert . Equal ( vote . ValidatorPower ? . ToString ( ) , resultData [ "validatorPower" ] ) ;
61
61
Assert . Equal ( vote . Flag . ToString ( ) , resultData [ "flag" ] ) ;
62
62
Assert . Equal ( ByteUtil . Hex ( vote . Signature ) , resultData [ "signature" ] ) ;
63
63
}
You can’t perform that action at this time.
0 commit comments