@@ -446,11 +446,6 @@ func TestStatusAPIStatements(t *testing.T) {
446
446
// See if the statements returned are what we executed.
447
447
var statementsInResponse []string
448
448
for _ , respStatement := range resp .Statements {
449
- if respStatement .Stats .FailureCount > 0 {
450
- // We ignore failed statements here as the INSERT statement can fail and
451
- // be automatically retried, confusing the test success check.
452
- continue
453
- }
454
449
if strings .HasPrefix (respStatement .Key .KeyData .App , catconstants .InternalAppNamePrefix ) {
455
450
// We ignore internal queries, these are not relevant for the
456
451
// validity of this test.
@@ -787,14 +782,7 @@ func TestStatusAPICombinedStatementsWithFullScans(t *testing.T) {
787
782
// statement statistics received from the server response.
788
783
actualResponseStatsMap := make (map [string ]serverpb.StatementsResponse_CollectedStatementStatistics )
789
784
for _ , respStatement := range resp .Statements {
790
- // Skip failed statements: The test app may encounter transient 40001
791
- // errors that are automatically retried. Thus, we only consider
792
- // statements that were that were successfully executed by the test app
793
- // to avoid counting such failures. If a statement that we expect to be
794
- // successful is not found in the response, the test will fail later.
795
- if respStatement .Key .KeyData .App == testAppName && respStatement .Stats .FailureCount == 0 {
796
- actualResponseStatsMap [respStatement .Key .KeyData .Query ] = respStatement
797
- }
785
+ actualResponseStatsMap [respStatement .Key .KeyData .Query ] = respStatement
798
786
}
799
787
800
788
for respQuery , expectedData := range expectedStatementStatsMap {
@@ -904,11 +892,6 @@ func TestStatusAPICombinedStatements(t *testing.T) {
904
892
var statementsInResponse []string
905
893
expectedTxnFingerprints := map [appstatspb.TransactionFingerprintID ]struct {}{}
906
894
for _ , respStatement := range resp .Statements {
907
- if respStatement .Stats .FailureCount > 0 {
908
- // We ignore failed statements here as the INSERT statement can fail and
909
- // be automatically retried, confusing the test success check.
910
- continue
911
- }
912
895
if strings .HasPrefix (respStatement .Key .KeyData .App , catconstants .InternalAppNamePrefix ) {
913
896
// CombinedStatementStats should filter out internal queries.
914
897
t .Fatalf ("unexpected internal query: %s" , respStatement .Key .KeyData .Query )
0 commit comments