@@ -200,11 +200,7 @@ func TestQueryTxExecute(t *testing.T) {
200200 }
201201 return nil
202202 }, query .WithIdempotent (), query .WithTxSettings (query .TxSettings (query .WithOnlineReadOnly ())))
203- if version .Lt (os .Getenv ("YDB_VERSION" ), "24.3" ) {
204- require .NoError (t , err )
205- } else {
206- require .True (t , ydb .IsOperationError (err , Ydb .StatusIds_BAD_REQUEST ))
207- }
203+ require .True (t , ydb .IsOperationError (err , Ydb .StatusIds_BAD_REQUEST ))
208204 })
209205 t .Run ("StaleReadOnly" , func (t * testing.T ) {
210206 err := scope .DriverWithLogs ().Query ().DoTx (scope .Ctx , func (ctx context.Context , tx query.TxActor ) (err error ) {
@@ -227,11 +223,7 @@ func TestQueryTxExecute(t *testing.T) {
227223 }
228224 return nil
229225 }, query .WithIdempotent (), query .WithTxSettings (query .TxSettings (query .WithStaleReadOnly ())))
230- if version .Lt (os .Getenv ("YDB_VERSION" ), "24.3" ) {
231- require .NoError (t , err )
232- } else {
233- require .True (t , ydb .IsOperationError (err , Ydb .StatusIds_BAD_REQUEST ))
234- }
226+ require .True (t , ydb .IsOperationError (err , Ydb .StatusIds_BAD_REQUEST ))
235227 })
236228 t .Run ("ErrOptionNotForTxExecute" , func (t * testing.T ) {
237229 err := scope .DriverWithLogs ().Query ().DoTx (scope .Ctx , func (ctx context.Context , tx query.TxActor ) (err error ) {
0 commit comments