Skip to content

Commit

Permalink
Update the test to verify the change
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcarl committed Mar 21, 2024
1 parent 02b96c5 commit 228313d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
)

func TestClient_GetAccountInfo(t *testing.T) {
responseBody := `{"context":{"slot":83986105},"value":{"data":["dGVzdA==","base64"],"executable":true,"lamports":999999,"owner":"11111111111111111111111111111111","rentEpoch":207}}`
responseBody := `{"context":{"slot":83986105},"value":{"data":["dGVzdA==","base64"],"executable":true,"lamports":999999,"owner":"11111111111111111111111111111111","rentEpoch":18446744073709551615}}`
server, closer := mockJSONRPC(t, stdjson.RawMessage(wrapIntoRPC(responseBody)))
defer closer()
client := New(server.URL)
Expand Down Expand Up @@ -65,6 +65,7 @@ func TestClient_GetAccountInfo(t *testing.T) {
reqBody,
)

rentEpoch, _ := new(big.Int).SetString("18446744073709551615", 10)
assert.Equal(t,
&GetAccountInfoResult{
RPCContext: RPCContext{
Expand All @@ -81,7 +82,7 @@ func TestClient_GetAccountInfo(t *testing.T) {
},
},
Executable: true,
RentEpoch: big.NewInt(207),
RentEpoch: rentEpoch,
},
}, out)
}
Expand Down

0 comments on commit 228313d

Please sign in to comment.