Skip to content

Commit f692f1f

Browse files
committed
test(solana): test payload size and account limits that GMP can handle
1 parent 88da2f9 commit f692f1f

File tree

8 files changed

+473
-7
lines changed

8 files changed

+473
-7
lines changed

e2e/interchaintestv8/solana/go-anchor/gmpcounter/discriminators.go

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/interchaintestv8/solana/go-anchor/gmpcounter/doc.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/interchaintestv8/solana/go-anchor/gmpcounter/instructions.go

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/interchaintestv8/solana/test_helpers.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,13 @@ func (s *Solana) SubmitChunkedUpdateClient(ctx context.Context, t *testing.T, re
328328
close(chunkResults)
329329

330330
chunksTotal := time.Since(chunksStart)
331-
avgChunkTime := chunksTotal / time.Duration(chunkCount)
332-
t.Logf("--- Phase 1 Complete: All %d chunks uploaded in %v (avg: %v/chunk) ---",
333-
chunkCount, chunksTotal, avgChunkTime)
331+
if chunkCount > 0 {
332+
avgChunkTime := chunksTotal / time.Duration(chunkCount)
333+
t.Logf("--- Phase 1 Complete: All %d chunks uploaded in %v (avg: %v/chunk) ---",
334+
chunkCount, chunksTotal, avgChunkTime)
335+
} else {
336+
t.Logf("--- Phase 1 Complete: No chunks needed (update fits in single transaction) ---")
337+
}
334338

335339
t.Logf("--- Phase 2: Assembling and updating client ---")
336340
assemblyStart := time.Now()

0 commit comments

Comments
 (0)