Skip to content

Commit 97b1fe0

Browse files
ngbrownmichaelklishin
authored andcommitted
Set latch to end unit test after closing connection and extend test timeout to give the Wait timeout a chance to trigger.
1 parent f754052 commit 97b1fe0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test:
5252
categories:
5353
except:
5454
- RequireSMP
55+
- LongRunning
5556

5657
artifacts:
5758
- path: '**\*.nupkg'

projects/client/Unit/src/unit/TestSubscription.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public override void Init()
6060
Model = Conn.CreateModel();
6161
}
6262

63-
[Test, Timeout(5000)]
63+
[Test, Timeout(16000)]
6464
public void TestConsumerCancellationNotification()
6565
{
6666
var q = Guid.NewGuid().ToString();
@@ -70,11 +70,11 @@ public void TestConsumerCancellationNotification()
7070
sub.Consumer.ConsumerCancelled += (_sender, _args) =>
7171
{
7272
sub.Close();
73-
latch.Set();
7473
Conn.Close();
74+
latch.Set();
7575
};
7676
this.Model.QueueDelete(q);
77-
Wait(latch, TimeSpan.FromSeconds(4));
77+
Wait(latch, TimeSpan.FromSeconds(8));
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)