From 245f690b78776c924d4fa2f92b918427d7168421 Mon Sep 17 00:00:00 2001 From: porosnicuadrian Date: Mon, 22 Feb 2021 17:57:03 +0200 Subject: [PATCH] Fixed integration tests for stats/resources for internal --- apier/v1/resourcesv1_it_test.go | 1 + apier/v1/stats_it_test.go | 1 + engine/resources.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apier/v1/resourcesv1_it_test.go b/apier/v1/resourcesv1_it_test.go index a218c1ed2..18ee30e8c 100644 --- a/apier/v1/resourcesv1_it_test.go +++ b/apier/v1/resourcesv1_it_test.go @@ -80,6 +80,7 @@ func TestRsV1IT(t *testing.T) { switch *dbType { case utils.MetaInternal: rlsV1ConfDIR = "tutinternal" + sTestsRLSV1 = sTestsRLSV1[:len(sTestsRLSV1)-4] case utils.MetaMySQL: rlsV1ConfDIR = "tutmysql" case utils.MetaMongo: diff --git a/apier/v1/stats_it_test.go b/apier/v1/stats_it_test.go index c215c8b08..407702e9c 100644 --- a/apier/v1/stats_it_test.go +++ b/apier/v1/stats_it_test.go @@ -111,6 +111,7 @@ func TestSTSV1IT(t *testing.T) { switch *dbType { case utils.MetaInternal: stsV1ConfDIR = "tutinternal" + sTestsStatSV1 = sTestsStatSV1[:len(sTestsStatSV1)-4] case utils.MetaMySQL: stsV1ConfDIR = "tutmysql" case utils.MetaMongo: diff --git a/engine/resources.go b/engine/resources.go index d909d6a01..130a5b8ad 100644 --- a/engine/resources.go +++ b/engine/resources.go @@ -378,7 +378,7 @@ func (rS *ResourceService) StoreResource(r *Resource) (err error) { // storeResources represents one task of complete backup func (rS *ResourceService) storeResources() { var failedRIDs []string - for { // don't stop untill we store all dirty resources + for { // don't stop until we store all dirty resources rS.srMux.Lock() rID := rS.storedResources.GetOne() if rID != "" {