Skip to content

Commit

Permalink
testccl: ignore timeout error for decode_plan_gist in TestExplainGist
Browse files Browse the repository at this point in the history
This commit adds statement timeouts to the set of errors that will be ignored
when `TestExplainGist` executes `decode_plan_gist`.

Fixes #133343

Release note: None
  • Loading branch information
DrewKimball committed Oct 31, 2024
1 parent e475d04 commit 5dd9ed5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/ccl/testccl/sqlccl/explain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,11 @@ func TestExplainGist(t *testing.T) {
}
_, err = sqlDB.Exec("SELECT crdb_internal.decode_plan_gist($1);", gist)
if err != nil {
// We might be still in the process of cancelling the previous
// DROP operation - ignore this particular error.
if !testutils.IsError(err, "descriptor is being dropped") {
// We might be still in the process of cancelling the previous DROP
// operation or hit the statement timeout - ignore this particular
// error.
if !testutils.IsError(err, "descriptor is being dropped") &&
!sqltestutils.IsClientSideQueryCanceledErr(err) {
t.Fatal(err)
}
continue
Expand Down

0 comments on commit 5dd9ed5

Please sign in to comment.