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 @@ -98,7 +98,7 @@ public async Task Logout_Should_Detach_Chain_And_Reattach_On_Next_Login()
9898 var page = await chainsResponse . Content . ReadFromJsonAsync < PagedResult < SessionChainSummary > > ( ) ;
9999 page . Should ( ) . NotBeNull ( ) ;
100100
101- page ! . Items . Should ( ) . HaveCount ( 1 ) ;
101+ page ! . Items . Should ( ) . Contain ( x => x . IsCurrentDevice ) ;
102102
103103 var chain = page . Items . Single ( ) ;
104104
@@ -169,7 +169,7 @@ public async Task Logout_Should_Not_Revoke_Chain()
169169 var chainsResponse = await _client . PostAsJsonAsync ( "/auth/me/sessions/chains" , new PageRequest ( ) ) ;
170170 var page = await chainsResponse . Content . ReadFromJsonAsync < PagedResult < SessionChainSummary > > ( ) ;
171171
172- page ! . Items . Should ( ) . HaveCount ( 1 ) ;
172+ page ! . Items . Should ( ) . Contain ( x => x . IsCurrentDevice ) ;
173173
174174 var chain = page . Items . Single ( ) ;
175175
@@ -193,7 +193,7 @@ public async Task Logout_Should_Clear_Only_Current_Chain()
193193 var chainsResponse = await client2 . PostAsJsonAsync ( "/auth/me/sessions/chains" , new PageRequest ( ) ) ;
194194 var page = await chainsResponse . Content . ReadFromJsonAsync < PagedResult < SessionChainSummary > > ( ) ;
195195
196- page ! . Items . Should ( ) . HaveCount ( 2 ) ;
196+ page ! . Items . Count ( x => x . ActiveSessionId != null ) . Should ( ) . Be ( 1 ) ;
197197
198198 var device2Chain = page . Items . First ( x => x . IsCurrentDevice ) ;
199199
You can’t perform that action at this time.
0 commit comments