From 68b9f5e72004021b81fafcbecf81debb64ec38da Mon Sep 17 00:00:00 2001 From: TeoV Date: Wed, 22 Jul 2020 16:25:33 +0300 Subject: [PATCH] Update integration test in apier --- apier/v1/remote_it_test.go | 1 + apier/v1/thresholds_it_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apier/v1/remote_it_test.go b/apier/v1/remote_it_test.go index 62563e1c9..13c962615 100644 --- a/apier/v1/remote_it_test.go +++ b/apier/v1/remote_it_test.go @@ -152,6 +152,7 @@ func testInternalRemoteITDataFlush(t *testing.T) { } func testInternalRemoteITStartEngine(t *testing.T) { + engine.KillEngine(100) if _, err := engine.StartEngine(engineOneCfgPath, 500); err != nil { t.Fatal(err) } diff --git a/apier/v1/thresholds_it_test.go b/apier/v1/thresholds_it_test.go index 88706e5f7..aaf0e47ab 100644 --- a/apier/v1/thresholds_it_test.go +++ b/apier/v1/thresholds_it_test.go @@ -170,7 +170,7 @@ var ( utils.PDD: time.Duration(0) * time.Second, utils.AnswerTime: time.Date(2013, 11, 7, 8, 42, 26, 0, time.UTC), utils.Usage: time.Duration(10) * time.Second, - utils.SUPPLIER: "SUPPL1", + utils.ROUTE: "SUPPL1", utils.COST: -1.0, }, },