Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Sentry/GlobalSessionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@
}

var filePath = Path.Combine(_persistenceDirectoryPath, PersistedSessionFileName);
if (!_options.FileSystem.FileExists(filePath))
{
_options.LogDebug("A persisted session file was not found at '{0}'.", filePath);
return null;
}

try
{
var recoveredUpdate = _persistedSessionProvider(filePath);
Expand Down Expand Up @@ -195,15 +201,9 @@

return sessionUpdate;
}
catch (Exception ex) when (ex is FileNotFoundException or DirectoryNotFoundException)
{
// Not a notable error
_options.LogDebug("A persisted session does not exist ({0}) at {1}.", ex.GetType().Name, filePath);
return null;
}
catch (Exception ex)
{
_options.LogError(ex, "Failed to recover persisted session from the file system '{0}'.", filePath);

Check warning on line 206 in src/Sentry/GlobalSessionManager.cs

View check run for this annotation

@sentry/warden / warden: find-bugs

[5D5-YBF] FileNotFoundException from provider is never triggered in test (additional location)

The test `TryRecoverPersistedSession_NoSessionFile_LogDebug` sets `_fixture.PersistedSessionProvider = _ => throw new FileNotFoundException()` but this exception is never thrown. In `GlobalSessionManager.TryRecoverPersistedSession()`, line 154 checks `_options.FileSystem.FileExists(filePath)` before calling the provider. Since no session is started/persisted, `FileExists` returns false, the method returns early at line 157 with the debug message, and the provider is never invoked. The test passes coincidentally because the debug message matches, but it doesn't actually test exception handling from the provider.

return null;
}
Expand Down
38 changes: 11 additions & 27 deletions test/Sentry.Tests/GlobalSessionManagerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,45 +261,28 @@
}

[Fact]
public void TryRecoverPersistedSession_FileNotFoundException_LogDebug()
public void TryRecoverPersistedSession_NoSessionFile_LogDebug()
{
// Arrange
_fixture.PersistedSessionProvider = _ => throw new FileNotFoundException();
var sut = _fixture.GetSut();
sut = new GlobalSessionManager(
_fixture.Options,
persistedSessionProvider: _ => throw new FileNotFoundException());

// Act
sut.TryRecoverPersistedSession();

// Assert
_fixture.Logger.Entries.Should().Contain(e => e.Level == SentryLevel.Debug);
}

[Fact]
public void TryRecoverPersistedSession_DirectoryNotFoundException_LogDebug()
{
// Arrange
var sut = _fixture.GetSut();
sut = new GlobalSessionManager(
_fixture.Options,
persistedSessionProvider: _ => throw new DirectoryNotFoundException());

// Act
sut.TryRecoverPersistedSession();

// Assert
_fixture.Logger.Entries.Should().Contain(e => e.Level == SentryLevel.Debug);
_fixture.Logger.Entries.Should().Contain(e =>
e.Level == SentryLevel.Debug
&& e.Message.Contains("A persisted session file was not found"));

Check warning on line 276 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View check run for this annotation

@sentry/warden / warden: find-bugs

FileNotFoundException from provider is never triggered in test

The test `TryRecoverPersistedSession_NoSessionFile_LogDebug` sets `_fixture.PersistedSessionProvider = _ => throw new FileNotFoundException()` but this exception is never thrown. In `GlobalSessionManager.TryRecoverPersistedSession()`, line 154 checks `_options.FileSystem.FileExists(filePath)` before calling the provider. Since no session is started/persisted, `FileExists` returns false, the method returns early at line 157 with the debug message, and the provider is never invoked. The test passes coincidentally because the debug message matches, but it doesn't actually test exception handling from the provider.
}

[Fact]
public void TryRecoverPersistedSession_EndOfStreamException_LogError()
{
// Arrange
_fixture.PersistedSessionProvider = _ => throw new EndOfStreamException();
var sut = _fixture.GetSut();
sut = new GlobalSessionManager(
_fixture.Options,
persistedSessionProvider: _ => throw new EndOfStreamException());
sut.StartSession();

// Act
sut.TryRecoverPersistedSession();
Expand Down Expand Up @@ -383,14 +366,14 @@
public void TryRecoverPersistedSession_CrashDelegateReturnsTrueWithPauseTimestamp_EndsAsCrashed()
{
// Arrange
_fixture.Options.CrashedLastRun = () => true;
// Session was paused before persisted:
var pausedTimestamp = DateTimeOffset.Now;
var pausedTimestamp = DateTimeOffset.Now; // Session was paused before persisted:
_fixture.PersistedSessionProvider = _ => new PersistedSessionUpdate(
AnySessionUpdate(),
pausedTimestamp);
_fixture.Options.CrashedLastRun = () => true;

var sut = _fixture.GetSut();
sut.StartSession();

// Act
var persistedSessionUpdate = sut.TryRecoverPersistedSession();
Expand All @@ -412,6 +395,7 @@
pausedTimestamp);

var sut = _fixture.GetSut();
sut.StartSession();

// Act
var persistedSessionUpdate = sut.TryRecoverPersistedSession();
Expand Down Expand Up @@ -573,8 +557,8 @@
var persistedSessionUpdate = sut.TryRecoverPersistedSession();

// Assert
persistedSessionUpdate.Should().NotBeNull();

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate!.EndStatus not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.

Check failure on line 560 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate not to be <null>.
persistedSessionUpdate!.EndStatus.Should().Be(SessionEndStatus.Unhandled);

Check failure on line 561 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndNoCrash_EndsAsUnhandled

Expected persistedSessionUpdate!.EndStatus not to be <null>.
}

[Fact]
Expand All @@ -593,7 +577,7 @@
var persistedSessionUpdate = sut.TryRecoverPersistedSession();

// Assert
persistedSessionUpdate.Should().NotBeNull();

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 580 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndCrash_EscalatesToCrashed

Expected persistedSessionUpdate not to be <null>.
persistedSessionUpdate!.EndStatus.Should().Be(SessionEndStatus.Crashed);
}

Expand All @@ -615,7 +599,7 @@

// Assert
// Crash takes priority over all other end statuses
persistedSessionUpdate.Should().NotBeNull();

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-musl-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (linux-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-arm64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (macos)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.

Check failure on line 602 in test/Sentry.Tests/GlobalSessionManagerTests.cs

View workflow job for this annotation

GitHub Actions / .NET (win-x64)

Sentry.Tests.GlobalSessionManagerTests.TryRecoverPersistedSession_WithPendingUnhandledAndPauseTimestamp_EscalatesToCrashedIfCrashed

Expected persistedSessionUpdate not to be <null>.
persistedSessionUpdate!.EndStatus.Should().Be(SessionEndStatus.Crashed);
}

Expand Down
Loading