Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d67706f

Browse files
authored
token-client: Unignore tests (#6517)
1 parent 8c8e7de commit d67706f

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

token/client/tests/program-test.rs

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ fn keypair_clone(kp: &Keypair) -> Keypair {
7272
Keypair::from_bytes(&kp.to_bytes()).expect("failed to copy keypair")
7373
}
7474

75-
// TODO unignore once spl-token-2022 becomes spl-token, and is included in
76-
// ProgramTest by default
77-
#[ignore]
7875
#[tokio::test]
7976
async fn associated_token_account() {
8077
let TestContext { token, alice, .. } = TestContext::new().await;
@@ -109,9 +106,6 @@ async fn associated_token_account() {
109106
);
110107
}
111108

112-
// TODO unignore once spl-token-2022 becomes spl-token, and is included in
113-
// ProgramTest by default
114-
#[ignore]
115109
#[tokio::test]
116110
async fn get_or_create_associated_token_account() {
117111
let TestContext { token, alice, .. } = TestContext::new().await;
@@ -135,9 +129,6 @@ async fn get_or_create_associated_token_account() {
135129
);
136130
}
137131

138-
// TODO unignore once spl-token-2022 becomes spl-token, and is included in
139-
// ProgramTest by default
140-
#[ignore]
141132
#[tokio::test]
142133
async fn set_authority() {
143134
let TestContext {
@@ -148,11 +139,12 @@ async fn set_authority() {
148139
..
149140
} = TestContext::new().await;
150141

142+
let alice_vault = Keypair::new();
151143
token
152-
.create_associated_token_account(&alice.pubkey())
144+
.create_auxiliary_token_account(&alice_vault, &alice.pubkey())
153145
.await
154-
.expect("failed to create associated token account");
155-
let alice_vault = token.get_associated_token_address(&alice.pubkey());
146+
.expect("failed to create token account");
147+
let alice_vault = alice_vault.pubkey();
156148

157149
token
158150
.mint_to(
@@ -215,9 +207,6 @@ async fn set_authority() {
215207
);
216208
}
217209

218-
// TODO unignore once spl-token-2022 becomes spl-token, and is included in
219-
// ProgramTest by default
220-
#[ignore]
221210
#[tokio::test]
222211
async fn mint_to() {
223212
let TestContext {
@@ -256,9 +245,6 @@ async fn mint_to() {
256245
);
257246
}
258247

259-
// TODO unignore once spl-token-2022 becomes spl-token, and is included in
260-
// ProgramTest by default
261-
#[ignore]
262248
#[tokio::test]
263249
async fn transfer() {
264250
let TestContext {

0 commit comments

Comments
 (0)