Skip to content

Commit f6657d5

Browse files
committed
One More Fix
1 parent ba1d82c commit f6657d5

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

tests/CodeBeam.UltimateAuth.Tests.Integration/LogoutTests.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)