1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

M #: Fix GOCA hook tests (#4186)

(cherry picked from commit 8b234c2b17a9cfd6ae161937e55d9dd4b4c7fdef)
This commit is contained in:
Christian González 2020-02-13 10:03:59 +01:00 committed by Tino Vazquez
parent 8024aa2c1c
commit 067fa7b5d9
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

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)