mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-19 18:54:07 +00:00
Return amqp tests (#841)
This commit is contained in:
parent
73f3e448cf
commit
f01962085a
@ -103,7 +103,6 @@ func TestRedis(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestAmqp(t *testing.T) {
|
func TestAmqp(t *testing.T) {
|
||||||
t.Skip("Invalid test. Not stable")
|
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("ignored acceptance test")
|
t.Skip("ignored acceptance test")
|
||||||
}
|
}
|
||||||
@ -156,7 +155,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(5 * time.Second)
|
time.Sleep(10 * time.Second)
|
||||||
|
|
||||||
for i := 0; i < defaultEntriesCount/5; i++ {
|
for i := 0; i < defaultEntriesCount/5; i++ {
|
||||||
ch, err := conn.Channel()
|
ch, err := conn.Channel()
|
||||||
|
@ -150,9 +150,10 @@ func runCypressTests(t *testing.T, cypressRunCmd string) {
|
|||||||
t.Logf("running command: %v", cypressCmd.String())
|
t.Logf("running command: %v", cypressCmd.String())
|
||||||
out, err := cypressCmd.Output()
|
out, err := cypressCmd.Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("%s", out)
|
t.Errorf("error running cypress, error: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
t.Logf("%s", out)
|
t.Logf("%s", out)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user