Merge "Update playground for calling convention changes"
diff --git a/client/bundles/fortune/src/server/server.js b/client/bundles/fortune/src/server/server.js
index 4da88b1..91b3abb 100644
--- a/client/bundles/fortune/src/server/server.js
+++ b/client/bundles/fortune/src/server/server.js
@@ -29,7 +29,7 @@
var randomIndex = Math.floor(Math.random() * numExistingfortunes);
var fortune = this.fortunes[randomIndex];
console.info('Serving:', fortune);
- return fortune;
+ return Promise.resolve(fortune);
};
// Adds a new fortune
@@ -39,6 +39,7 @@
}
console.info('Adding:', fortune);
this.fortunes.push(fortune);
+ return Promise.resolve();
};
/**
diff --git a/go/src/playground/testdata/src/pong/pong.js b/go/src/playground/testdata/src/pong/pong.js
index 49c3134..9fec979 100644
--- a/go/src/playground/testdata/src/pong/pong.js
+++ b/go/src/playground/testdata/src/pong/pong.js
@@ -13,7 +13,7 @@
PingPongService.prototype.ping = function(ctx, message) {
console.log('[' + ctx.remoteBlessingStrings + '] ' + message);
- return 'PONG';
+ return Promise.resolve('PONG');
};
var pingPongService = new PingPongService();