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:
parent
8024aa2c1c
commit
067fa7b5d9
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user