summaryrefslogtreecommitdiff
path: root/addons/bus
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-06-05 09:18:14 +0000
committerAaron Bohy <aab@odoo.com>2020-06-12 09:47:48 +0000
commitb4ba0fc34082deec8ca6c871ce7a203c0a3a61a4 (patch)
tree27451423f32b218e699d3135c398d338b249c5cd /addons/bus
parentdc260c324170a90fa737cd21dd528e39d658d9b6 (diff)
[FIX] *: adapt tests to env rework
This commit adapts tests following recent changes on the helpers. The main change is that addMockEnvironment (and all functions using it) are now async, as they need to wait for services to be started.
Diffstat (limited to 'addons/bus')
-rw-r--r--addons/bus/static/tests/bus_tests.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/bus/static/tests/bus_tests.js b/addons/bus/static/tests/bus_tests.js
index 551a145bda9..b13694a7afb 100644
--- a/addons/bus/static/tests/bus_tests.js
+++ b/addons/bus/static/tests/bus_tests.js
@@ -27,7 +27,7 @@ QUnit.module('Bus', {
var pollPromise = testUtils.makeTestPromise();
var parent = new Widget();
- testUtils.mock.addMockEnvironment(parent, {
+ await testUtils.mock.addMockEnvironment(parent, {
data: {},
services: {
bus_service: BusService,
@@ -101,7 +101,7 @@ QUnit.module('Bus', {
var pollPromise = testUtils.makeTestPromise();
var parent = new Widget();
- testUtils.mock.addMockEnvironment(parent, {
+ await testUtils.mock.addMockEnvironment(parent, {
data: {},
services: {
bus_service: BusService,
@@ -142,7 +142,7 @@ QUnit.module('Bus', {
var pollPromiseMaster = testUtils.makeTestPromise();
var parentMaster = new Widget();
- testUtils.mock.addMockEnvironment(parentMaster, {
+ await testUtils.mock.addMockEnvironment(parentMaster, {
data: {},
services: {
bus_service: BusService,
@@ -173,7 +173,7 @@ QUnit.module('Bus', {
// slave
await testUtils.nextTick();
var parentSlave = new Widget();
- testUtils.mock.addMockEnvironment(parentSlave, {
+ await testUtils.mock.addMockEnvironment(parentSlave, {
data: {},
services: {
bus_service: BusService,
@@ -220,7 +220,7 @@ QUnit.module('Bus', {
var pollPromiseMaster = testUtils.makeTestPromise();
var parentMaster = new Widget();
- testUtils.mock.addMockEnvironment(parentMaster, {
+ await testUtils.mock.addMockEnvironment(parentMaster, {
data: {},
services: {
bus_service: BusService,
@@ -252,7 +252,7 @@ QUnit.module('Bus', {
await testUtils.nextTick();
var parentSlave = new Widget();
var pollPromiseSlave = testUtils.makeTestPromise();
- testUtils.mock.addMockEnvironment(parentSlave, {
+ await testUtils.mock.addMockEnvironment(parentSlave, {
data: {},
services: {
bus_service: BusService,