Skip to content

Commit 7f22bf8

Browse files
hjiangleeyeh
authored andcommitted
test: make some tests fast and independent of real backend (#579)
* test: make some tests fast and independent of real backend Some tests rely on random() and Date, which need to be rewritten. The revised tests are moved forward to prevent being affected by global states from other tests. * test: ignore more headers when matching requests Some of those headers may be affected by Node versions. * test: ignore headers when matching requests * test: update request logs * test: use deterministic username * test: make request reply more stable * test: add test:real for testing with real backend * test: use replay for user-related tests * test: use log replay for leaderboard tests * test: log replay for status tests * test: support setting server URL suffix * test: remove Travis CI env override * test: use pollyjs for ACL tests * test: make cache test faster * test: use polly for conversation test * test: use pollyjs for role tests * test: only test file API when using real backend
1 parent 8d42c68 commit 7f22bf8

File tree

148 files changed

+66283
-173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+66283
-173
lines changed

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@ node_js:
44
- '10'
55

66
sudo: false
7-
env:
8-
global:
9-
- S3=true
10-
- APPID=QvNM6AG2khJtBQo6WRMWqfLV-gzGzoHsz
11-
- APPKEY=be2YmUduiuEnCB2VR9bLRnnV
12-
- MASTERKEY=1AqFJWElESSui6JKqHiKnLTY
13-
- HOOKKEY=Y7RVPi20qOKQg4Lp8CyY35Lq
14-
- STATUS_TARGET_USER_ID=57d7b3c28a51a2004eb9b31d
15-
- FILE_ID=577258d732070000567dea7e
167
install:
178
- npm install -g codecov
189
- npm install

0 commit comments

Comments
 (0)