Add time.Sleep in tp_it_test.go(import and export methond need more time for reading from disk and writing to disk)

This commit is contained in:
TeoV
2017-09-26 11:28:43 +03:00
parent 1e379641ea
commit 7802f1cc9e

View File

@@ -29,6 +29,7 @@ import (
"path"
"reflect"
"testing"
"time"
)
var (
@@ -119,6 +120,7 @@ func testTPImportTPFromFolderPath(t *testing.T) {
} else if reply != utils.OK {
t.Error("Calling ApierV1.ImportTarrifPlanFromFolder got reply: ", reply)
}
time.Sleep(time.Duration(2 * time.Second))
}
func testTPExportTPToFolder(t *testing.T) {
@@ -141,6 +143,7 @@ func testTPExportTPToFolder(t *testing.T) {
} else if !reflect.DeepEqual(len(reply.ExportedFiles), len(expectedTPStas.ExportedFiles)) {
t.Errorf("Expecting : %+v, received: %+v", len(reply.ExportedFiles), len(expectedTPStas.ExportedFiles))
}
time.Sleep(time.Duration(2 * time.Second))
}