Added go clean --cache for integration tests

This commit is contained in:
Trial97
2018-11-02 11:39:43 +02:00
committed by Dan Christian Bogos
parent a845675094
commit 65e67691b7
3 changed files with 4 additions and 4 deletions

View File

@@ -163,7 +163,6 @@ func testV1FIdxSetThresholdProfile(t *testing.T) {
ExpiryTime: time.Date(2014, 7, 14, 14, 25, 0, 0, time.UTC),
},
}
var result string
if err := tFIdxRpc.Call("ApierV1.SetFilter", filter, &result); err != nil {
t.Error(err)
@@ -1609,7 +1608,7 @@ func testV1FIdxGetFilterIndexes4(t *testing.T) {
}
func testV1FIdxStopEngine(t *testing.T) {
if err := engine.KillEngine(100); err != nil {
if err := engine.KillEngine(thdsDelay); err != nil {
t.Error(err)
}
}

View File

@@ -35,8 +35,8 @@ import (
var tFIdxCaRpc *rpc.Client
var sTestsFilterIndexesSV1Ca = []func(t *testing.T){
testV1FIdxdxInitDataDb,
testV1FIdxCaLoadConfig,
testV1FIdxdxInitDataDb,
testV1FIdxCadxInitDataDb,
testV1FIdxCaResetStorDb,
testV1FIdxCaStartEngine,
@@ -1448,7 +1448,7 @@ func testV1FIdxCaRemoveResourceProfile(t *testing.T) {
}
func testV1FIdxCaStopEngine(t *testing.T) {
if err := engine.KillEngine(100); err != nil {
if err := engine.KillEngine(thdsDelay); err != nil {
t.Error(err)
}
}

View File

@@ -1,4 +1,5 @@
#! /usr/bin/env sh
go clean --cache
./test.sh
gen=$?
echo 'go test github.com/cgrates/cgrates/apier/v1 -tags=integration'