@@ -143,7 +143,7 @@ func Test_GetServerStatus(t *testing.T) {
143143
144144func Test_GetDeploymentSupportInfo (t * testing.T ) {
145145 Wrap (t , func (t * testing.T , client arangodb.Client ) {
146- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
146+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
147147
148148 serverRole , err := client .ServerRole (ctx )
149149 require .NoError (t , err )
@@ -209,7 +209,8 @@ func Test_GetStartupConfiguration(t *testing.T) {
209209func Test_ReloadRoutingTable (t * testing.T ) {
210210 Wrap (t , func (t * testing.T , client arangodb.Client ) {
211211 WithDatabase (t , client , nil , func (db arangodb.Database ) {
212- withContextT (t , time .Minute , func (ctx context.Context , t testing.TB ) {
212+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
213+ requireV8Enabled (client , ctx , t )
213214 err := client .ReloadRoutingTable (ctx , db .Name ())
214215 require .NoError (t , err )
215216 })
@@ -221,6 +222,7 @@ func Test_ExecuteAdminScript(t *testing.T) {
221222 Wrap (t , func (t * testing.T , client arangodb.Client ) {
222223 WithDatabase (t , client , nil , func (db arangodb.Database ) {
223224 withContextT (t , defaultTestTimeout , func (ctx context.Context , tb testing.TB ) {
225+ requireV8Enabled (client , ctx , t )
224226 tests := []struct {
225227 name string
226228 script string
@@ -275,7 +277,7 @@ func Test_CompactDatabases(t *testing.T) {
275277 // that may conflict with other tests and server role checks can be inconsistent in parallel execution.
276278
277279 Wrap (t , func (t * testing.T , client arangodb.Client ) {
278- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
280+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
279281 if ! isNoAuth () {
280282 t .Skip ("Skipping: superuser tests run only in no-auth mode (TEST_AUTH=none)" )
281283 }
@@ -376,7 +378,7 @@ func validateTLSResponse(t testing.TB, tlsResp arangodb.TLSDataResponse, operati
376378// Test_ReloadTLSData tests TLS certificate reload functionality, skipping if superuser rights unavailable.
377379func Test_ReloadTLSData (t * testing.T ) {
378380 Wrap (t , func (t * testing.T , client arangodb.Client ) {
379- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
381+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
380382 if ! isNoAuth () {
381383 t .Skip ("Skipping: superuser tests run only in no-auth mode (TEST_AUTH=none)" )
382384 }
@@ -397,7 +399,7 @@ func Test_ReloadTLSData(t *testing.T) {
397399// The test is skipped if superuser rights are missing or the feature is disabled/not configured.
398400func Test_RotateEncryptionAtRestKey (t * testing.T ) {
399401 Wrap (t , func (t * testing.T , client arangodb.Client ) {
400- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
402+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
401403 if ! isNoAuth () {
402404 t .Skip ("Skipping: superuser tests run only in no-auth mode (TEST_AUTH=none)" )
403405 }
@@ -464,7 +466,7 @@ func Test_GetJWTSecrets(t *testing.T) {
464466// Test_ReloadJWTSecrets validates JWT secrets reload functionality, skipping if not available.
465467func Test_ReloadJWTSecrets (t * testing.T ) {
466468 Wrap (t , func (t * testing.T , client arangodb.Client ) {
467- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
469+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
468470 resp , err := client .ReloadJWTSecrets (ctx )
469471 if err != nil {
470472 if handleJWTSecretsError (t , err , "ReloadJWTSecrets" , []int {http .StatusForbidden , http .StatusBadRequest }) {
@@ -528,7 +530,7 @@ func validateJWTSecretsResponse(t testing.TB, resp arangodb.JWTSecretsResult, op
528530}
529531func Test_HandleAdminVersion (t * testing.T ) {
530532 Wrap (t , func (t * testing.T , client arangodb.Client ) {
531- withContextT (t , time . Minute , func (ctx context.Context , tb testing.TB ) {
533+ withContextT (t , defaultTestTimeout , func (ctx context.Context , tb testing.TB ) {
532534 t .Run ("With Options" , func (t * testing.T ) {
533535 resp , err := client .HandleAdminVersion (context .Background (), & arangodb.GetVersionOptions {
534536 Details : utils .NewType (true ),
@@ -554,7 +556,7 @@ func Test_HandleAdminVersion(t *testing.T) {
554556func Test_GetDeploymentId (t * testing.T ) {
555557 Wrap (t , func (t * testing.T , client arangodb.Client ) {
556558 t .Run ("Success case" , func (t * testing.T ) {
557- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
559+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
558560 version := skipBelowVersion (client , ctx , "3.12.6" , t )
559561 t .Logf ("Current Version %s" , version .Version )
560562
@@ -568,7 +570,7 @@ func Test_GetDeploymentId(t *testing.T) {
568570 })
569571
570572 t .Run ("Multiple calls consistency" , func (t * testing.T ) {
571- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
573+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
572574 version := skipBelowVersion (client , ctx , "3.12.6" , t )
573575 t .Logf ("Current Version %s" , version .Version )
574576
0 commit comments