tests: Remove a cheat from HTTPResponse testcases
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 30 Mar 2011 14:07:12 +0000 (17:07 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 30 Mar 2011 16:17:25 +0000 (19:17 +0300)
tests/rygel-http-response-test.vala

index 0d09ba2..08cc20a 100644 (file)
@@ -210,7 +210,6 @@ public class Rygel.HTTPClient : GLib.Object, StateMachine {
 
             if (bytes_received >= this.total_bytes &&
                 this.cancellable != null) {
-                bytes_received = bytes_received.clamp (0, this.total_bytes);
 
                 this.cancellable.cancel ();
             }