Skip to content

Commit 88c80d9

Browse files
Run go fmt on system_tests package
1 parent e97687d commit 88c80d9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

system_tests/system_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ CONSOLE_LOG=new`
568568
}
569569
Expect(createRabbitmqCluster(ctx, rmqClusterClient, cluster)).To(Succeed())
570570
waitForRabbitmqRunning(cluster)
571-
waitForPortReadiness(cluster, 1883) // mqtt
571+
waitForPortReadiness(cluster, 1883) // mqtt
572572
waitForPortReadiness(cluster, 61613) // stomp
573573

574574
hostname = kubernetesNodeIp(ctx, clientSet)
@@ -594,14 +594,13 @@ CONSOLE_LOG=new`
594594
By("Streams")
595595
if !hasFeatureEnabled(cluster, "stream_queue") {
596596
Skip("rabbitmq_stream plugin is not supported by RabbitMQ image " + cluster.Spec.Image)
597-
}else {
597+
} else {
598598
waitForPortConnectivity(cluster)
599599
waitForPortReadiness(cluster, 5552) // stream
600600
publishAndConsumeStreamMsg(hostname, rabbitmqNodePort(ctx, clientSet, cluster, "stream"), username, password)
601601
}
602602
})
603603

604-
605604
})
606605

607606
})

system_tests/utils.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ type featureFlag struct {
6767
State string
6868
}
6969

70-
71-
7270
func MustHaveEnv(name string) string {
7371
value := os.Getenv(name)
7472
if value == "" {
@@ -996,8 +994,8 @@ func publishAndConsumeStreamMsg(host, port, username, password string) {
996994
portInt, err := strconv.Atoi(port)
997995
Expect(err).ToNot(HaveOccurred())
998996

999-
var env *stream.Environment
1000-
Eventually(func() error{
997+
var env *stream.Environment
998+
Eventually(func() error {
1001999
fmt.Println("connecting to stream endpoint ...")
10021000
env, err = stream.NewEnvironment(stream.NewEnvironmentOptions().
10031001
SetHost(host).
@@ -1011,7 +1009,7 @@ func publishAndConsumeStreamMsg(host, port, username, password string) {
10111009
if err == nil {
10121010
fmt.Println("connected to stream endpoint")
10131011
return nil
1014-
}else {
1012+
} else {
10151013
fmt.Printf("failed to connect to stream endpoint (%s:%d) due to %g\n", host, portInt, err)
10161014
}
10171015
return err

0 commit comments

Comments
 (0)