func TestSendFailedRepliesWithZeroReplies(t *testing.T) {
	contextMock := MockContext()

	// create mocked service and set expectations
	mdsMock := new(runcommandmock.MockedMDS)
	replies := []string{}
	mdsMock.On("LoadFailedReplies", mock.AnythingOfType("*log.Mock")).Return(replies)

	proc := RunCommandService{
		name:    mdsName,
		context: contextMock,
		service: mdsMock,
	}

	proc.sendFailedReplies()

	time.Sleep(1 * time.Second)
	mdsMock.AssertNumberOfCalls(t, "SendReplyWithInput", 0)
	mdsMock.AssertNumberOfCalls(t, "DeleteFailedReply", 0)
}
// TestSendFailedRepliesWithZeroReplies tests the sendFailedReplies function with zero replies
TestSendFailedRepliesWithZeroReplies tests the sendFailedReplies function with zero replies
// TestSendFailedRepliesWithZeroReplies tests the sendFailedReplies function with zero replies
func TestSendFailedRepliesWithZeroReplies(t *testing.T) {
	contextMock := MockContext()
	mdsMock := new(runcommandmock.MockedMDS)
	replies := []string{}
	mdsMock.On("LoadFailedReplies", mock.AnythingOfType("*log.Mock")).Return(replies)
	proc := RunCommandService{
		name:    mdsName,
		context: contextMock,
		service: mdsMock,
	}
	proc.sendFailedReplies()
	time.Sleep(1 * time.Second)
	mdsMock.AssertNumberOfCalls(t, "SendReplyWithInput", 0)
	mdsMock.AssertNumberOfCalls(t, "DeleteFailedReply", 0)
}
func TestSendFailedRepliesWithZeroReplies ( t * testing . T ) { contextMock := MockContext ( ) mdsMock := new ( runcommandmock . MockedMDS ) replies := [ ] string { } mdsMock . On ( " " , mock . AnythingOfType ( " " ) ) . Return ( replies ) proc := RunCommandService { name : mdsName , context : contextMock , service : mdsMock , } proc . sendFailedReplies ( ) time . Sleep ( 1 * time . Second ) mdsMock . AssertNumberOfCalls ( t , " " , 0 ) mdsMock . AssertNumberOfCalls ( t , " " , 0 ) }
TestSendFailedRepliesWithZeroReplies tests the sendFailedReplies function with zero replies
TestSendFailedRepliesWithZeroReplies tests the sendFailedReplies function with zero replies
// create mocked service and set expectations