[geary/wip/766133-gnotification: 17/18] Minor fix for MockObject



commit 664ce8d0461837ff50f1b6b451a1494dac218d5f
Author: Michael Gratton <mike vee net>
Date:   Sun Apr 14 21:01:20 2019 +1000

    Minor fix for MockObject

 test/mock-object.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/test/mock-object.vala b/test/mock-object.vala
index 59b4b56e..eaffa5e9 100644
--- a/test/mock-object.vala
+++ b/test/mock-object.vala
@@ -165,11 +165,11 @@ public interface MockObject {
         return return_object;
     }
 
-    protected R object_or_throw_call<R>(string name, Object[] args, Error default_error)
-        throws Error {
+    protected R object_or_throw_call<R>(string name, Object[] args, GLib.Error default_error)
+        throws GLib.Error {
         ExpectedCall? expected = call_made(name, args);
 
-        if (expected.return_object != null) {
+        if (expected.return_object == null) {
             throw default_error;
         }
         return expected.return_object;


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