Skip to content

Commit

Permalink
fgbfy
Browse files Browse the repository at this point in the history
  • Loading branch information
theramis committed Oct 1, 2020
1 parent 3bbd8dd commit 17264fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public void SnapshotDoesNotExist_ShouldUpdate_ResultStatusIs_SnapshotUpdated()
[Fact]
public void SnapshotDoesNotExist_ResultStatusIs_SnapshotUpdated()
{
// Tests run on CI so clearing the CI environment variable to emulate local machine
Environment.SetEnvironmentVariable("CI", null, EnvironmentVariableTarget.Process);

_store.Setup(a => a.GetSnapshot(It.IsAny<SnapshotId>())).Returns(null);
_updateDecider.Setup(a => a.ShouldUpdateSnapshot()).Returns(false);

Expand Down
4 changes: 2 additions & 2 deletions project/Tests/Snapper.Tests/SnapperSnapshotsPerMethodTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ public void SnapshotDoesNotExist_And_IsCiEnv_SnapshotDoesNotExistException_IsThr
[Fact]
public void SnapshotsDoesNotExist_SnapshotIsCreated()
{
// // Tests run on CI so clearing the CI environment variable to emulate local machine
// Environment.SetEnvironmentVariable("CI", null, EnvironmentVariableTarget.Process);
// Tests run on CI so clearing the CI environment variable to emulate local machine
Environment.SetEnvironmentVariable("CI", null, EnvironmentVariableTarget.Process);

// Arrange
var snapshotFilePath = GetSnapshotFilePath<SnapperSnapshotsPerMethodTests>(
Expand Down

0 comments on commit 17264fe

Please sign in to comment.