mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
M #: Fix GOCA hook tests (#4186)
(cherry picked from commit 8b234c2b17)
This commit is contained in:
1 parent
8024aa2c1c
commit
067fa7b5d9
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user