Fixed integration tests for stats/resources for internal

This commit is contained in:
porosnicuadrian
2021-02-22 17:57:03 +02:00
committed by Dan Christian Bogos
parent 47f1570e1c
commit 245f690b78
3 changed files with 3 additions and 1 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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 != "" {