Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: reduce test issue pipeline wait period to 1 second (#2901)
Danny Xu712857f6ffe1
diff --git a/server/server.go b/server/server.goindex 87704492fd..7a59d04f77 100644--- a/server/server.go+++ b/server/server.go@@ -489,9 +489,6 @@ func (s *Server) Run(ctx context.Context, port int) error {}}- // Sleep for 1 sec to make sure port is released between runs.- time.Sleep(time.Duration(1) * time.Second)-return s.e.Start(fmt.Sprintf(":%d", port))}diff --git a/sql-server/server.go b/sql-server/server.goindex 5d081a8b69..b29c76050d 100644--- a/sql-server/server.go+++ b/sql-server/server.go@@ -118,9 +118,6 @@ func NewServer(ctx context.Context, prof Profile) (*Server, error) {// Run will run the server.func (s *Server) Run() error {- // Sleep for 1 sec to make sure port is released between runs.- time.Sleep(time.Duration(1) * time.Second)-return s.e.Start(fmt.Sprintf(":%d", s.profile.BackendPort))}diff --git a/tests/tests.go b/tests/tests.goindex c4a78cdab1..af29e3d83a 100644--- a/tests/tests.go+++ b/tests/tests.go@@ -909,8 +909,8 @@ func (ctl *controller) waitIssuePipelineWithStageApproval(id int) (api.TaskStatu// waitIssuePipelineImpl waits for the tasks in pipeline to finish and approves tasks when necessary.func (ctl *controller) waitIssuePipelineTaskImpl(id int, approveFunc func(issue *api.Issue) error, approveOnce bool) (api.TaskStatus, error) {- // Sleep for two seconds between issues so that we don't get migration version conflict because we are using second-level timestamp for the version string. We choose sleep because it mimics the user's behavior.- time.Sleep(2 * time.Second)+ // Sleep for 1 second between issues so that we don't get migration version conflict because we are using second-level timestamp for the version string. We choose sleep because it mimics the user's behavior.+ time.Sleep(1 * time.Second)ticker := time.NewTicker(100 * time.Millisecond)defer ticker.Stop()