Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(graphql): flakiness in pruning test #19440

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 2 additions & 55 deletions crates/sui-graphql-e2e-tests/tests/stable/prune.exp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
processed 13 tasks
processed 12 tasks

task 1, lines 6-25:
//# publish
Expand Down Expand Up @@ -49,60 +49,7 @@ task 10, line 43:
Epoch advanced: 2

task 11, lines 45-55:
//# run-graphql
Response: {
"data": {
"checkpoints": {
"nodes": [
{
"epoch": {
"epochId": 0
},
"sequenceNumber": 0
},
{
"epoch": {
"epochId": 0
},
"sequenceNumber": 1
},
{
"epoch": {
"epochId": 0
},
"sequenceNumber": 2
},
{
"epoch": {
"epochId": 1
},
"sequenceNumber": 3
},
{
"epoch": {
"epochId": 1
},
"sequenceNumber": 4
},
{
"epoch": {
"epochId": 2
},
"sequenceNumber": 5
},
{
"epoch": {
"epochId": 2
},
"sequenceNumber": 6
}
]
}
}
}

task 12, lines 58-68:
//# run-graphql --wait-for-checkpoint-pruned 0
//# run-graphql --wait-for-checkpoint-pruned 4
Response: {
"data": {
"checkpoints": {
Expand Down
15 changes: 1 addition & 14 deletions crates/sui-graphql-e2e-tests/tests/stable/prune.move
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,7 @@ module Test::M1 {

//# advance-epoch

//# run-graphql
{
checkpoints {
nodes {
epoch {
epochId
}
sequenceNumber
}
}
}


//# run-graphql --wait-for-checkpoint-pruned 0
//# run-graphql --wait-for-checkpoint-pruned 4
{
checkpoints {
nodes {
Expand Down
Loading