Skip to content

Commit 1964b56

Browse files
committed
Remove temporary work around in JS tests
1 parent f0b96de commit 1964b56

2 files changed

Lines changed: 4 additions & 16 deletions

File tree

clients/js/test/createMetadata.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ test('it creates a canonical metadata account with data larger than a transactio
6262
const [program] = await createDeployedProgram(client, authority);
6363

6464
// When we create a canonical metadata account for the program with a lot of data.
65-
const largeData = getUtf8Encoder().encode(
66-
// TODO: Temporary workaround to avoid sending the exact same data.
67-
'x'.repeat(1_000) + 'y'.repeat(1_000) + 'z'.repeat(1_000)
68-
);
65+
const largeData = getUtf8Encoder().encode('x'.repeat(3_000));
6966
const { metadata } = await createMetadata({
7067
...client,
7168
payer: authority,
@@ -143,10 +140,7 @@ test('it creates a non-canonical metadata account with data larger than a transa
143140
const program = address('TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA');
144141

145142
// When we create a non-canonical metadata account for the program with a lot of data.
146-
const largeData = getUtf8Encoder().encode(
147-
// TODO: Temporary workaround to avoid sending the exact same data.
148-
'x'.repeat(1_000) + 'y'.repeat(1_000) + 'z'.repeat(1_000)
149-
);
143+
const largeData = getUtf8Encoder().encode('x'.repeat(3_000));
150144
const { metadata } = await createMetadata({
151145
...client,
152146
payer: authority,

clients/js/test/updateMetadata.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ test('it updates a canonical metadata account with data larger than a transactio
9191
});
9292

9393
// When we update the metadata account with new data with a lot of data.
94-
const newData = getUtf8Encoder().encode(
95-
// TODO: Temporary workaround to avoid sending the exact same data.
96-
'x'.repeat(1_000) + 'y'.repeat(1_000) + 'z'.repeat(1_000)
97-
);
94+
const newData = getUtf8Encoder().encode('x'.repeat(3_000));
9895
const { metadata } = await updateMetadata({
9996
...client,
10097
payer: authority,
@@ -200,10 +197,7 @@ test('it updates a non-canonical metadata account with data larger than a transa
200197
});
201198

202199
// When we update the metadata account with new data.
203-
const newData = getUtf8Encoder().encode(
204-
// TODO: Temporary workaround to avoid sending the exact same data.
205-
'x'.repeat(1_000) + 'y'.repeat(1_000) + 'z'.repeat(1_000)
206-
);
200+
const newData = getUtf8Encoder().encode('x'.repeat(3_000));
207201
const { metadata } = await updateMetadata({
208202
...client,
209203
payer: authority,

0 commit comments

Comments
 (0)