Permalink
Browse files

Change id to solve race condition

  • Loading branch information...
1 parent 55cef4a commit 307de16fdf3d1303a76980838950dab34b4e7c4b @soitgoes committed Sep 11, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 LoveSeat.IntegrationTest/CouchClientTest.cs
@@ -80,10 +80,10 @@ public void Should_Determine_If_Doc_Has_Attachment()
public void Should_Return_Attachment_Names()
{
var db = client.GetDatabase(baseDatabase);
- db.CreateDocument(@"{""_id"":""fdsa""}");
+ db.CreateDocument(@"{""_id"":""upload""}");
var attachment = File.ReadAllBytes("../../Files/martin.jpg");
- db.AddAttachment("fdsa", attachment, "martin.jpg", "image/jpeg");
- var doc = db.GetDocument("fdsa");
+ db.AddAttachment("upload", attachment, "martin.jpg", "image/jpeg");
+ var doc = db.GetDocument("upload");
Assert.IsTrue(doc.GetAttachmentNames().Contains("martin.jpg"));
}

0 comments on commit 307de16

Please sign in to comment.