From 95633e7b85901513ab1f5cf80ea681141b304843 Mon Sep 17 00:00:00 2001 From: andronache98 Date: Mon, 20 Dec 2021 15:41:24 +0200 Subject: [PATCH] Added panic api in coresv1 for testing --- apier/v1/core.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apier/v1/core.go b/apier/v1/core.go index a3aa34157..831cd7065 100644 --- a/apier/v1/core.go +++ b/apier/v1/core.go @@ -95,3 +95,7 @@ func (cS *CoreSv1) StopMemoryProfiling(_ *utils.TenantWithAPIOpts, reply *string *reply = utils.OK return nil } + +func (cS *CoreSv1) Panic(_ *utils.TenantWithAPIOpts, _ *string) error { + panic("This is a panic test!") +}