[geary/wip/766133-gnotification: 12/13] Minor fix for MockObject



commit 9273fa0c494a42a71cfba92a91c776e01394c064
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]