Skip to content

Commit

Permalink
tests: Fix the HostSession suite
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Nov 23, 2024
1 parent 2c1cf1e commit cd6366a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/frida.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2999,6 +2999,10 @@ namespace Frida {
}
#endif

public DBusConnection _get_connection () {
return ((DBusProxy) active_session).g_connection;
}

private T create<T> () {
return Object.new (typeof (T), parent: this);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test-host-session.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ namespace Frida.HostSessionTest {
if (strategy == PEER) {
yield session.setup_peer_connection ();

peer_connection = ((DBusProxy) session.session).g_connection;
peer_connection = session._get_connection ();
bool disrupting = false;
var main_context = MainContext.ref_thread_default ();
filter_id = peer_connection.add_filter ((conn, message, incoming) => {
Expand Down

0 comments on commit cd6366a

Please sign in to comment.