Skip to content

Commit

Permalink
EBP-94: removed the unused helper function and minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
oodigie committed Dec 19, 2024
1 parent 571bacb commit 94c33be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions test/helpers/messaging_service_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,6 @@ func ForceDisconnectViaSEMPv2(messagingService solace.MessagingService) {
ExpectWithOffset(1, err).ToNot(HaveOccurred())
}

func CheckMessagingServiceDisconnectedViaSEMPv2(messagingService solace.MessagingService) {
resp, _, err := testcontext.SEMP().Monitor().MsgVpnApi.
GetMsgVpnClient(testcontext.SEMP().MonitorCtx(), testcontext.Messaging().VPN, "notexist", nil)
ExpectWithOffset(1, err).To(HaveOccurred(), "Expected SEMP to reject call checking for connected client after disconnecting client")
decodeMonitorSwaggerError(err, &resp, 2)
ExpectWithOffset(1, resp.Meta).ToNot(BeNil(), "Expected response from SEMP to contain meta")
ExpectWithOffset(1, resp.Meta.Error_).ToNot(BeNil(), "Expected response from SEMP to contain an error")
ExpectWithOffset(1, resp.Meta.Error_.Status).To(Equal("NOT_FOUND"), "Expected response from SEMP to have error status NOT_FOUND")
}

// ValidateMetric function
func ValidateMetric(messagingService solace.MessagingService, metric metrics.Metric, expectedValue uint64) {
EventuallyWithOffset(1, func() uint64 {
Expand Down
1 change: 0 additions & 1 deletion test/request_reply_message_receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ var _ = Describe("RequestReplyReceiver", func() {
if replier != nil {
payload, _ := racingMessage.GetPayloadAsString()
err = replier.Reply(helpers.NewMessage(messagingService, "Reply for: "+payload))
Expect(err).To(BeNil())
}
}

Expand Down

0 comments on commit 94c33be

Please sign in to comment.