M #: Fix GOCA hook tests (#4186)

(cherry picked from commit 8b234c2b17)
This commit is contained in:
Christian González authored and Tino Vazquez committed 2020-02-13 10:04:16 +01:00
1 parent 8024aa2c1c
commit 067fa7b5d9
1 file changed
+2 -2
+2 -2
View File
@@ -24,7 +24,7 @@ import (
"github.com/OpenNebula/one/src/oca/go/src/goca/schemas/hook/keys"
)
var call = "one.zone.info"
var call = "one.zone.raftstatus"
// Helper to create a Hook Network
func createHook(t *testing.T) (*hk.Hook, int) {
@@ -82,7 +82,7 @@ func TestHook(t *testing.T) {
currentExecs := len(hook.Log.ExecutionRecords)
//triger the hook
testCtrl.Zone(0).Info(false)
testCtrl.Zones().ServerRaftStatus()
time.Sleep(2 * time.Second)