Skip to content

Commit

Permalink
Change id to solve race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Murphy committed Sep 11, 2010
1 parent 55cef4a commit 307de16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LoveSeat.IntegrationTest/CouchClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

0 comments on commit 307de16

Please sign in to comment.