From 19aa090bdcff083c039c0767908c9608ad853403 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 4 Feb 2016 10:59:36 -0800 Subject: [tests] Don't call the callback for cancelled responses StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback". Fixes #3784 --- test/sprite/sprite_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sprite') diff --git a/test/sprite/sprite_store.cpp b/test/sprite/sprite_store.cpp index 08977eac4f..ee6ea2e9e0 100644 --- a/test/sprite/sprite_store.cpp +++ b/test/sprite/sprite_store.cpp @@ -299,7 +299,7 @@ TEST(SpriteStore, LoadingCancel) { test.fileSource.spriteImageResponse = test.fileSource.spriteJSONResponse = [&] (const Resource&) { test.end(); - return Response(); + return optional(); }; test.observer.spriteLoaded = [&] () { -- cgit v1.2.1