mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Increasing unit test timeout for waitOnStreamCurrent from 10 to 30 sec
Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
@@ -5048,7 +5048,7 @@ func (c *cluster) streamLeader(account, stream string) *Server {
|
||||
|
||||
func (c *cluster) waitOnStreamCurrent(s *Server, account, stream string) {
|
||||
c.t.Helper()
|
||||
expires := time.Now().Add(10 * time.Second)
|
||||
expires := time.Now().Add(30 * time.Second)
|
||||
for time.Now().Before(expires) {
|
||||
if s.JetStreamIsStreamCurrent(account, stream) {
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
|
||||
Reference in New Issue
Block a user