Skip to content

Commit fdfd9a4

Browse files
authored
Merge pull request #768 from rabbitmq/flaky-tests
Bump system tests timeouts and remove k8s 1.18 from PR workflow
2 parents dfe2111 + b68c8e4 commit fdfd9a4

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
strategy:
5353
matrix:
5454
k8s:
55-
- v1.18.19
5655
- v1.19.11
5756
- v1.20.7
5857
- v1.21.1

system_tests/system_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ var _ = Describe("Operator", func() {
165165
}
166166
Eventually(getConfigMapAnnotations, 30, 1).Should(
167167
HaveKey("rabbitmq.com/pluginsUpdatedAt"), "plugins ConfigMap should have been annotated")
168-
Eventually(getConfigMapAnnotations, 60, 1).Should(
168+
Eventually(getConfigMapAnnotations, 120, 1).Should(
169169
Not(HaveKey("rabbitmq.com/pluginsUpdatedAt")), "plugins ConfigMap annotation should have been removed")
170170

171171
Eventually(func() map[string][]byte {
172172
secret, err := clientSet.CoreV1().Secrets(cluster.Namespace).Get(ctx, cluster.ChildResourceName("default-user"), metav1.GetOptions{})
173173
Expect(err).NotTo(HaveOccurred())
174174
return secret.Data
175-
}).Should(HaveKeyWithValue("mqtt-port", []byte("1883")))
175+
}, 30).Should(HaveKeyWithValue("mqtt-port", []byte("1883")))
176176

177177
_, err := kubectlExec(namespace,
178178
statefulSetPodName(cluster, 0),

system_tests/utils.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -859,16 +859,16 @@ func publishAndConsumeMQTTMsg(hostname, port, username, password string, overWeb
859859
}
860860

861861
token = c.Subscribe(topic, 0, handler)
862-
ExpectWithOffset(1, token.Wait()).To(BeTrue())
863-
ExpectWithOffset(1, token.Error()).ToNot(HaveOccurred())
862+
ExpectWithOffset(1, token.Wait()).To(BeTrue(), "Subscribe token should return true")
863+
ExpectWithOffset(1, token.Error()).ToNot(HaveOccurred(), "Subscribe token received error")
864864

865865
token = c.Publish(topic, 0, false, "test message MQTT")
866-
ExpectWithOffset(1, token.Wait()).To(BeTrue())
867-
ExpectWithOffset(1, token.Error()).ToNot(HaveOccurred())
866+
ExpectWithOffset(1, token.Wait()).To(BeTrue(), "Publish token should return true")
867+
ExpectWithOffset(1, token.Error()).ToNot(HaveOccurred(), "Publish token received error")
868868

869869
EventuallyWithOffset(1, func() bool {
870870
return msgReceived
871-
}, 5*time.Second).Should(BeTrue())
871+
}, 5*time.Second).Should(BeTrue(), "Expect to receive message")
872872

873873
token = c.Unsubscribe(topic)
874874
ExpectWithOffset(1, token.Wait()).To(BeTrue())

0 commit comments

Comments
 (0)