Skip to content

Commit

Permalink
chore(tsw): add-dump-h5test
Browse files Browse the repository at this point in the history
增加脚本
  • Loading branch information
huangyoukun authored and RobinzZH committed May 28, 2018
1 parent 5e953a8 commit 3832c72
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bin/proxy/dump.h5test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env node

/*!
* Tencent is pleased to support the open source community by making Tencent Server Web available.
* Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
'use strict';

const plug = require('plug');
const logger = plug('logger');
const h5test = plug('util/h5-test/is-test.js');

logger.setLogLevel('debug');
h5test.getTestUserMap();

setTimeout(function() {
const res = h5test.getTestUserMap();
logger.debug(res);
}, 3000);

3 changes: 3 additions & 0 deletions bin/proxy/dump.h5test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

TSW ./dump.h5test.js

0 comments on commit 3832c72

Please sign in to comment.