Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit fac4159

Browse files
Fixing tests
1 parent 3439858 commit fac4159

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/tests/IntegrationTests/Events/RepositoryWatcherTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public async Task ShouldDetectBranchChange()
9090
Logger.Trace("Continue test");
9191

9292
repositoryWatcherListener.DidNotReceive().ConfigChanged();
93-
repositoryWatcherListener.Received(1).HeadChanged("ref: refs/heads/feature/document");
93+
repositoryWatcherListener.Received().HeadChanged();
9494
repositoryWatcherListener.Received().IndexChanged();
9595
repositoryWatcherListener.DidNotReceive().LocalBranchCreated(Args.String);
9696
repositoryWatcherListener.DidNotReceive().LocalBranchDeleted(Args.String);
@@ -135,7 +135,7 @@ public async Task ShouldDetectBranchDelete()
135135
Logger.Trace("Continue test");
136136

137137
repositoryWatcherListener.Received(1).ConfigChanged();
138-
repositoryWatcherListener.DidNotReceive().HeadChanged(Args.String);
138+
repositoryWatcherListener.DidNotReceive().HeadChanged();
139139
repositoryWatcherListener.DidNotReceive().IndexChanged();
140140
repositoryWatcherListener.DidNotReceive().LocalBranchCreated(Args.String);
141141
repositoryWatcherListener.Received(1).LocalBranchDeleted("feature/document");
@@ -179,7 +179,7 @@ public async Task ShouldDetectBranchCreate()
179179
Logger.Trace("Continue test");
180180

181181
repositoryWatcherListener.DidNotReceive().ConfigChanged();
182-
repositoryWatcherListener.DidNotReceive().HeadChanged(Args.String);
182+
repositoryWatcherListener.DidNotReceive().HeadChanged();
183183
repositoryWatcherListener.DidNotReceive().IndexChanged();
184184
repositoryWatcherListener.Received(1).LocalBranchCreated("feature/document2");
185185
repositoryWatcherListener.DidNotReceive().LocalBranchDeleted(Args.String);
@@ -201,7 +201,7 @@ public async Task ShouldDetectBranchCreate()
201201
Logger.Trace("Continue test");
202202

203203
repositoryWatcherListener.DidNotReceive().ConfigChanged();
204-
repositoryWatcherListener.DidNotReceive().HeadChanged(Args.String);
204+
repositoryWatcherListener.DidNotReceive().HeadChanged();
205205
repositoryWatcherListener.DidNotReceive().IndexChanged();
206206
repositoryWatcherListener.Received(1).LocalBranchCreated("feature2/document2");
207207
repositoryWatcherListener.DidNotReceive().LocalBranchDeleted(Args.String);
@@ -250,7 +250,7 @@ public async Task ShouldDetectChangesToRemotes()
250250
Logger.Trace("Continue test");
251251

252252
repositoryWatcherListener.Received().ConfigChanged();
253-
repositoryWatcherListener.DidNotReceive().HeadChanged(Args.String);
253+
repositoryWatcherListener.DidNotReceive().HeadChanged();
254254
repositoryWatcherListener.DidNotReceive().IndexChanged();
255255
repositoryWatcherListener.DidNotReceive().LocalBranchCreated(Args.String);
256256
repositoryWatcherListener.DidNotReceive().LocalBranchDeleted(Args.String);
@@ -275,7 +275,7 @@ public async Task ShouldDetectChangesToRemotes()
275275
Logger.Trace("Continue 2nd test");
276276

277277
repositoryWatcherListener.Received().ConfigChanged();
278-
repositoryWatcherListener.DidNotReceive().HeadChanged(Args.String);
278+
repositoryWatcherListener.DidNotReceive().HeadChanged();
279279
repositoryWatcherListener.DidNotReceive().IndexChanged();
280280
repositoryWatcherListener.DidNotReceive().LocalBranchCreated(Args.String);
281281
repositoryWatcherListener.DidNotReceive().LocalBranchDeleted(Args.String);
@@ -321,7 +321,7 @@ public async Task ShouldDetectGitPull()
321321
Logger.Trace("Continue test");
322322

323323
repositoryWatcherListener.DidNotReceive().ConfigChanged();
324-
repositoryWatcherListener.DidNotReceive().HeadChanged(Args.String);
324+
repositoryWatcherListener.DidNotReceive().HeadChanged();
325325
repositoryWatcherListener.Received().IndexChanged();
326326
repositoryWatcherListener.DidNotReceive().LocalBranchCreated(Args.String);
327327
repositoryWatcherListener.DidNotReceive().LocalBranchDeleted(Args.String);
@@ -366,7 +366,7 @@ public async Task ShouldDetectGitFetch()
366366
Logger.Trace("Continue test");
367367

368368
repositoryWatcherListener.DidNotReceive().ConfigChanged();
369-
repositoryWatcherListener.DidNotReceive().HeadChanged(Args.String);
369+
repositoryWatcherListener.DidNotReceive().HeadChanged();
370370
repositoryWatcherListener.DidNotReceive().IndexChanged();
371371
repositoryWatcherListener.DidNotReceive().LocalBranchCreated(Args.String);
372372
repositoryWatcherListener.DidNotReceive().LocalBranchDeleted(Args.String);
@@ -485,7 +485,7 @@ public static void AttachListener(this IRepositoryWatcherListener listener, IRep
485485
public static void AssertDidNotReceiveAnyCalls(this IRepositoryWatcherListener repositoryWatcherListener)
486486
{
487487
repositoryWatcherListener.DidNotReceive().ConfigChanged();
488-
repositoryWatcherListener.DidNotReceive().HeadChanged(Args.String);
488+
repositoryWatcherListener.DidNotReceive().HeadChanged();
489489
repositoryWatcherListener.DidNotReceive().IndexChanged();
490490
repositoryWatcherListener.DidNotReceive().LocalBranchCreated(Args.String);
491491
repositoryWatcherListener.DidNotReceive().LocalBranchDeleted(Args.String);

0 commit comments

Comments
 (0)