From b172deda57baad561027021660e6eb07444bd903 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Fri, 6 Dec 2024 09:01:25 -0500 Subject: [PATCH] [8046] 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 24b4c04a07..0a9edf50b1 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);