Commit 70c9166e authored by Daniel P. Berrange's avatar Daniel P. Berrange

Use named types for connection enum constants

Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
parent 8e17387b
This diff is collapsed.
......@@ -994,7 +994,7 @@ func TestListAllStoragePools(t *testing.T) {
t.Errorf("CloseConnection() == %d, expected 0", res)
}
}()
pools, err := conn.ListAllStoragePools(VIR_STORAGE_POOL_INACTIVE)
pools, err := conn.ListAllStoragePools(VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE)
if err != nil {
t.Fatal(err)
}
......
......@@ -49,7 +49,7 @@ func TestMultipleCloseCallback(t *testing.T) {
}
}()
callback := func(conn VirConnection, reason int, opaque func()) {
callback := func(conn VirConnection, reason VirConnectCloseReason, opaque func()) {
if reason != VIR_CONNECT_CLOSE_REASON_KEEPALIVE {
t.Errorf("Expected close reason to be %d, got %d",
VIR_CONNECT_CLOSE_REASON_KEEPALIVE, reason)
......@@ -96,7 +96,7 @@ func TestUnregisterCloseCallback(t *testing.T) {
}
}()
callback := func(conn VirConnection, reason int, opaque func()) {
callback := func(conn VirConnection, reason VirConnectCloseReason, opaque func()) {
nbCall++
}
err := conn.RegisterCloseCallback(callback, nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment