Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Better error semantics

  • Loading branch information...
commit f47daefe6a653b66861a7caf195612e8b52557f3 1 parent 4dca33b
Ayende Rahien authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 Raven.Tests.Silverlight/Notifications.cs
6 Raven.Tests.Silverlight/Notifications.cs
@@ -4,6 +4,7 @@
4 4 // </copyright>
5 5 // -----------------------------------------------------------------------
6 6 using System.Collections.Generic;
  7 +using System.Threading;
7 8 using System.Threading.Tasks;
8 9 using System.Windows.Documents;
9 10 using Microsoft.Silverlight.Testing;
@@ -25,6 +26,11 @@ public IEnumerable<Task> ShouldGetNotifications()
25 26 var dbname = GenerateNewDatabaseName();
26 27
27 28 var tcs = new TaskCompletionSource<ChangeNotification>();
  29 + Task.Factory.StartNew(() =>
  30 + {
  31 + Thread.Sleep(5000);
  32 + tcs.TrySetCanceled();
  33 + });
28 34 using (var documentStore = new DocumentStore
29 35 {
30 36 Url = Url + Port,

0 comments on commit f47daef

Please sign in to comment.
Something went wrong with that request. Please try again.