[rygel] tests: Correct size check for HTTPResponse test



commit 0495569c3b71dc8e5ac97907a8a311fb426d20b6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Mar 25 19:26:20 2011 +0200

    tests: Correct size check for HTTPResponse test

 tests/rygel-http-response-test.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/rygel-http-response-test.vala b/tests/rygel-http-response-test.vala
index 02dfba4..0d09ba2 100644
--- a/tests/rygel-http-response-test.vala
+++ b/tests/rygel-http-response-test.vala
@@ -217,7 +217,7 @@ public class Rygel.HTTPClient : GLib.Object, StateMachine {
         });
 
         this.context.session.queue_message (this.msg, (session, msg) => {
-            assert (bytes_received == this.total_bytes);
+            assert (cancellable == null || bytes_received == this.total_bytes);
 
             run_continue ();
         });



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]