File tree Expand file tree Collapse file tree
tests/CodeBeam.UltimateAuth.Tests.Integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,13 +102,12 @@ public async Task Logout_Should_Detach_Chain_And_Reattach_On_Next_Login()
102102 page . Should ( ) . NotBeNull ( ) ;
103103 page ! . Items . Should ( ) . NotBeEmpty ( ) ;
104104
105- var activeChains = page . Items . Where ( x => x . ActiveSessionId != null ) . ToList ( ) ;
106- activeChains . Should ( ) . HaveCount ( 1 ) ;
105+ var currentDeviceChains = page . Items . Where ( x => x . IsCurrentDevice ) . ToList ( ) ;
106+ currentDeviceChains . Should ( ) . HaveCount ( 1 ) ;
107107
108- var active = activeChains . Single ( ) ;
109- active . IsCurrentDevice . Should ( ) . BeTrue ( ) ;
110- active . IsRevoked . Should ( ) . BeFalse ( ) ;
111- active . ActiveSessionId . Should ( ) . NotBeNull ( ) ;
108+ var current = currentDeviceChains . Single ( ) ;
109+ current . ActiveSessionId . Should ( ) . NotBeNull ( ) ;
110+ current . IsRevoked . Should ( ) . BeFalse ( ) ;
112111 }
113112
114113 [ Fact ]
You can’t perform that action at this time.
0 commit comments