Skip to content

Commit

Permalink
Merge pull request #449 from identity-com/bugfix/test-for-expire-token
Browse files Browse the repository at this point in the history
Solana: Test for update-expiry bugfix
  • Loading branch information
dankelleher authored Jun 27, 2023
2 parents 16b2b2d + 2228376 commit d94bfee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 61 deletions.
60 changes: 0 additions & 60 deletions solana/gateway-ts/scripts/burn.ts

This file was deleted.

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
7 changes: 7 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,13 @@ 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 d94bfee

Please sign in to comment.