test: 🧪 Missing tests added (existing corrected)

This commit is contained in:
Paramtamtam 2024-07-01 23:44:27 +04:00
parent df2163e41e
commit 3c5b8f6337
No known key found for this signature in database
GPG Key ID: 366371698FAD0A2B

View File

@ -367,7 +367,7 @@ func startServer(t *testing.T, srv *appHttp.Server) (_ string, stop func()) {
<-time.After(5 * time.Millisecond)
}
return fmt.Sprintf("http://%s", hostPort), func() { assert.NoError(t, srv.Stop(10*time.Millisecond)) }
return fmt.Sprintf("http://%s", hostPort), func() { assert.NoError(t, srv.Stop(350*time.Millisecond)) }
}
// getFreeTcpPort is a helper function to get a free TCP port number.