@@ -2483,9 +2483,7 @@ func TestProveAttachmentNotFound(t *testing.T) {
2483
2483
}
2484
2484
2485
2485
// Initial set up
2486
- sent , _ , _ , err := bt .SendRev ("doc1" , "1-abc" , []byte (`{"key": "val", "_attachments": {"attachment": {"data": "` + attachmentDataEncoded + `"}}}` ), blip.Properties {})
2487
- require .True (t , sent )
2488
- require .NoError (t , err )
2486
+ bt .SendRev ("doc1" , "1-abc" , []byte (`{"key": "val", "_attachments": {"attachment": {"data": "` + attachmentDataEncoded + `"}}}` ), blip.Properties {})
2489
2487
2490
2488
rt .WaitForPendingChanges ()
2491
2489
@@ -2495,9 +2493,7 @@ func TestProveAttachmentNotFound(t *testing.T) {
2495
2493
2496
2494
// Use different attachment name to bypass digest check in ForEachStubAttachment() which skips prove attachment code
2497
2495
// Set attachment to V2 so it can be retrieved by RT successfully
2498
- sent , _ , _ , err = bt .SendRev ("doc1" , "2-abc" , []byte (`{"key": "val", "_attachments":{"attach":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"stub":true,"revpos":1,"ver":2}}}` ), blip.Properties {})
2499
- require .True (t , sent )
2500
- require .NoError (t , err )
2496
+ bt .SendRev ("doc1" , "2-abc" , []byte (`{"key": "val", "_attachments":{"attach":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"stub":true,"revpos":1,"ver":2}}}` ), blip.Properties {})
2501
2497
2502
2498
rt .WaitForPendingChanges ()
2503
2499
// Check attachment is on the document
@@ -2569,8 +2565,7 @@ func TestPutInvalidAttachment(t *testing.T) {
2569
2565
attachmentBody : test .invalidAttachmentBody ,
2570
2566
attachmentDigest : digest ,
2571
2567
}
2572
- sent , _ , resp := bt .SendRevWithAttachment (input )
2573
- assert .True (t , sent )
2568
+ resp := bt .SendRevWithAttachment (input )
2574
2569
2575
2570
// Make sure we get the expected response back
2576
2571
assert .Equal (t , test .expectedType , resp .Type ())
0 commit comments