Skip to content

Commit

Permalink
Solana: Test for update-expiry bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelleher committed Jun 27, 2023
1 parent 16b2b2d commit 902652c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion solana/program/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "solana-gateway"
version = "0.3.0"
version = "0.3.1"
description = "OCIV Gateway Program"
authors = ["Daniel Kelleher <[email protected]>"]
repository = "https://github.com/identity-com/on-chain-identity-gateway"
Expand Down
6 changes: 6 additions & 0 deletions solana/program/tests/update_gateway_token_expiry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ async fn expire_token_should_succeed() {
.process_transaction(expire_tx)
.await
.unwrap();

let now = GatewayContext::now();
let gateway_token = context
.get_gateway_token(&context.owner.pubkey())
.await.unwrap();
assert!(gateway_token.expire_time.unwrap() <= now);
}

#[tokio::test]
Expand Down

0 comments on commit 902652c

Please sign in to comment.