File tree Expand file tree Collapse file tree
src/cortex-tui/src/runner/app_runner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -960,11 +960,6 @@ pub(crate) fn spawn_me_profile_fetch(
960960 } )
961961}
962962
963- /// Identity URL used by the TUI runner — same resolver as device login and turns.
964- pub ( crate ) fn me_profile_request_url ( api_url : & str ) -> String {
965- cortex_engine:: client:: me_url ( api_url)
966- }
967-
968963// ============================================================================
969964// Tests
970965// ============================================================================
Original file line number Diff line number Diff line change @@ -92,12 +92,12 @@ fn test_app_runner_cortex_session_id() {
9292
9393#[ test]
9494fn me_profile_request_url_uses_configured_origin_never_production_or_auth_me ( ) {
95- let url = super :: me_profile_request_url ( "http://127.0.0.1:18081/" ) ;
95+ let url = cortex_engine :: client :: me_url ( "http://127.0.0.1:18081/" ) ;
9696 assert_eq ! ( url, "http://127.0.0.1:18081/v1/me" ) ;
9797 assert ! ( !url. contains( "api.cortex.foundation" ) ) ;
9898 assert ! ( !url. contains( "/auth/me" ) ) ;
9999 assert_eq ! (
100- super :: me_profile_request_url ( "https://api.cortex.foundation" ) ,
100+ cortex_engine :: client :: me_url ( "https://api.cortex.foundation" ) ,
101101 "https://api.cortex.foundation/v1/me"
102102 ) ;
103103}
You can’t perform that action at this time.
0 commit comments