diff --git a/test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js b/test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js index 45dc9ece70542b3c53ab212a06b6826228c990fb..825c2d389ae0130db5a59e108646f417d4d0fcca 100644 --- a/test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js +++ b/test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js @@ -83,9 +83,9 @@ define([ 'jquery', 'underscore', 'openbis', 'test/openbis-execute-operations', ' c.ok("Login"); return fAction(facade).then(function(result) { c.ok("Got results"); - var token = fCheck(facade, result); - if (token) { - token.then(function() { + var checkPromise = fCheck(facade, result); + if (checkPromise) { + checkPromise.then(function() { c.finish() }); } else { @@ -169,10 +169,8 @@ define([ 'jquery', 'underscore', 'openbis', 'test/openbis-execute-operations', ' } var fCheck = function(facade, result) { - c.ok("Got results: " + result); // Simple smoke test in this case. c.assertNotNull(result); - c.finish(); return null; }