Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 46294b6

Browse files
committed
Fix tests
1 parent 861a41b commit 46294b6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/GitHub.Exports/Models/UsageModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ public class UsageModel
77
public DimensionsModel Dimensions { get; set; } = new DimensionsModel();
88
public MeasuresModel Measures { get; set; } = new MeasuresModel();
99

10-
protected UsageModel() { }
10+
// this should never be called by our code but it's required to be public by the serialization code
11+
public UsageModel() { }
1112

1213
public static UsageModel Create(Guid guid)
1314
{

test/UnitTests/GitHub.VisualStudio/Services/MetricsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void ShouldStartTimer()
2525
var service = Substitute.For<IUsageService>();
2626
var target = new UsageTracker(CreateServiceProvider(), service, CreatePackageSettings());
2727

28-
service.Received(1).StartTimer(Arg.Any<Func<Task>>(), TimeSpan.FromMinutes(3), TimeSpan.FromHours(8));
28+
service.Received(1).StartTimer(Arg.Any<Func<Task>>(), TimeSpan.FromMinutes(3), TimeSpan.FromDays(1));
2929
}
3030

3131
[Test]

0 commit comments

Comments
 (0)