Reduce the sleep in AMQP tests to 5 seconds

This commit is contained in:
M. Mert Yildiran 2022-05-19 09:16:58 +03:00
parent 73448b514e
commit 12d87cc2dc
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A

View File

@ -3,11 +3,12 @@ package acceptanceTests
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/go-redis/redis/v8"
amqp "github.com/rabbitmq/amqp091-go"
"os/exec" "os/exec"
"testing" "testing"
"time" "time"
"github.com/go-redis/redis/v8"
amqp "github.com/rabbitmq/amqp091-go"
) )
func TestRedis(t *testing.T) { func TestRedis(t *testing.T) {
@ -167,7 +168,7 @@ func TestAmqp(t *testing.T) {
defer conn.Close() defer conn.Close()
// Temporary fix for missing amqp entries // Temporary fix for missing amqp entries
time.Sleep(10 * time.Second) time.Sleep(5 * time.Second)
for i := 0; i < DefaultEntriesCount/5; i++ { for i := 0; i < DefaultEntriesCount/5; i++ {
ch, err := conn.Channel() ch, err := conn.Channel()