提交 6f35b495 编写于 作者: N nan-xiansen

【starup】【master】modify review issues.

Signed-off-by: Nnan-xiansen <nanjinbin@huawei.com>
Change-Id: I2b5daf7fb4985a495dd957ff3a384842e0d3baa9
上级 10537483
...@@ -47,7 +47,7 @@ describe('SystemParameterTest', function () { ...@@ -47,7 +47,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0801', 0, async function (done) { it('system_parameter_test_0801', 0, async function (done) {
console.info('system_parameter_test_0801 start'); console.info('system_parameter_test_0801 start');
var ret = false; let ret = false;
try { try {
var parameterInfo = systemparameter.wait("test.wait_param.101", "100", 1); var parameterInfo = systemparameter.wait("test.wait_param.101", "100", 1);
parameterInfo.then(function (result) { // timeout parameterInfo.then(function (result) { // timeout
...@@ -73,7 +73,7 @@ describe('SystemParameterTest', function () { ...@@ -73,7 +73,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0802', 0, async function (done) { it('system_parameter_test_0802', 0, async function (done) {
console.info('system_parameter_test_0802 start'); console.info('system_parameter_test_0802 start');
var ret = false; let ret = false;
try { try {
var parameterInfo = systemparameter.wait("test.wait_param.102", "", 1); var parameterInfo = systemparameter.wait("test.wait_param.102", "", 1);
parameterInfo.then(function (result) { // timeout parameterInfo.then(function (result) { // timeout
...@@ -100,7 +100,7 @@ describe('SystemParameterTest', function () { ...@@ -100,7 +100,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0803', 0, async function (done) { it('system_parameter_test_0803', 0, async function (done) {
console.info('system_parameter_test_0803 start'); console.info('system_parameter_test_0803 start');
var ret = false; let ret = false;
SetParameter("test.wait_param.103", "103"); SetParameter("test.wait_param.103", "103");
try { try {
var parameterInfo = systemparameter.wait("test.wait_param.103", "103", 1); var parameterInfo = systemparameter.wait("test.wait_param.103", "103", 1);
...@@ -127,7 +127,7 @@ describe('SystemParameterTest', function () { ...@@ -127,7 +127,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0804', 0, async function (done) { it('system_parameter_test_0804', 0, async function (done) {
console.info('system_parameter_test_0804 start'); console.info('system_parameter_test_0804 start');
var ret = false; let ret = false;
SetParameter("test.wait_param.104", "104"); SetParameter("test.wait_param.104", "104");
try { try {
var parameterInfo = systemparameter.wait("test.wait_param.104", "*", 1); var parameterInfo = systemparameter.wait("test.wait_param.104", "*", 1);
...@@ -154,7 +154,7 @@ describe('SystemParameterTest', function () { ...@@ -154,7 +154,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0805', 0, async function (done) { it('system_parameter_test_0805', 0, async function (done) {
console.info('system_parameter_test_0805 start'); console.info('system_parameter_test_0805 start');
var ret = false; let ret = false;
SetParameter("test.wait_param.105", "105"); SetParameter("test.wait_param.105", "105");
try { try {
var parameterInfo = systemparameter.wait("test.wait_param.105", "*", -1); var parameterInfo = systemparameter.wait("test.wait_param.105", "*", -1);
...@@ -181,7 +181,7 @@ describe('SystemParameterTest', function () { ...@@ -181,7 +181,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0806', 0, async function (done) { it('system_parameter_test_0806', 0, async function (done) {
console.info('system_parameter_test_0806 start'); console.info('system_parameter_test_0806 start');
var ret = false; let ret = false;
try { try {
systemparameter.wait("test.wait_param.201", "100", 1, function (err, data) { systemparameter.wait("test.wait_param.201", "100", 1, function (err, data) {
if (err == undefined || err.code === 0) { if (err == undefined || err.code === 0) {
...@@ -210,7 +210,7 @@ describe('SystemParameterTest', function () { ...@@ -210,7 +210,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0807', 0, async function (done) { it('system_parameter_test_0807', 0, async function (done) {
console.info('system_parameter_test_0807 start'); console.info('system_parameter_test_0807 start');
var ret = false; let ret = false;
try { try {
ret = true; ret = true;
systemparameter.wait("test.wait_param.202", "", 1, function (err, data) { systemparameter.wait("test.wait_param.202", "", 1, function (err, data) {
...@@ -238,7 +238,7 @@ describe('SystemParameterTest', function () { ...@@ -238,7 +238,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0808', 0, async function (done) { it('system_parameter_test_0808', 0, async function (done) {
console.info('system_parameter_test_0808 start'); console.info('system_parameter_test_0808 start');
var ret = false; let ret = false;
SetParameter("test.wait_param.203", "103"); SetParameter("test.wait_param.203", "103");
try { try {
systemparameter.wait("test.wait_param.203", "103", 1, function (err, data) { systemparameter.wait("test.wait_param.203", "103", 1, function (err, data) {
...@@ -268,7 +268,7 @@ describe('SystemParameterTest', function () { ...@@ -268,7 +268,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0809', 0, async function (done) { it('system_parameter_test_0809', 0, async function (done) {
console.info('system_parameter_test_0809 start'); console.info('system_parameter_test_0809 start');
var ret = false; let ret = false;
SetParameter("test.wait_param.204", "104"); SetParameter("test.wait_param.204", "104");
try { try {
systemparameter.wait("test.wait_param.204", "*", 1, function (err, data) { systemparameter.wait("test.wait_param.204", "*", 1, function (err, data) {
...@@ -299,7 +299,7 @@ describe('SystemParameterTest', function () { ...@@ -299,7 +299,7 @@ describe('SystemParameterTest', function () {
*/ */
it('system_parameter_test_0810', 0, async function (done) { it('system_parameter_test_0810', 0, async function (done) {
console.info('system_parameter_test_0810 start'); console.info('system_parameter_test_0810 start');
var ret = false; let ret = false;
SetParameter("test.wait_param.205", "105"); SetParameter("test.wait_param.205", "105");
try { try {
systemparameter.wait("test.wait_param.205", "*", 1, function (err, data) { systemparameter.wait("test.wait_param.205", "*", 1, function (err, data) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册