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