From edb7e93466277e0e13cd6cbfd3a543e7e354e18c Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Sun, 10 Nov 2024 02:41:06 -0500 Subject: [PATCH] [?] Connect to server as correct user in rc_switch_user test. --- unit_tests/src/test_rc_switch_user.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit_tests/src/test_rc_switch_user.cpp b/unit_tests/src/test_rc_switch_user.cpp index 5259cc3e57..527fc7475d 100644 --- a/unit_tests/src/test_rc_switch_user.cpp +++ b/unit_tests/src/test_rc_switch_user.cpp @@ -467,7 +467,7 @@ TEST_CASE("rc_switch_user disassociates ticket from connection") // Connect to the iRODS server as test_user_1, with the rodsadmin acting as a proxy. irods::experimental::fully_qualified_username proxy_user{env.rodsUserName, env.rodsZone}; - irods::experimental::fully_qualified_username user{env.rodsUserName, env.rodsZone}; + irods::experimental::fully_qualified_username user{test_user_1.name, env.rodsZone}; irods::experimental::client_connection test_user_conn{ irods::experimental::defer_authentication, env.rodsHost, env.rodsPort, proxy_user, user}; REQUIRE(clientLoginWithPassword(static_cast(test_user_conn), password_prop.value.data()) == 0);