diff --git a/plugins/typed-messages/test/index.js b/plugins/typed-messages/test/index.js index 94edf4a9a..249b7c452 100644 --- a/plugins/typed-messages/test/index.js +++ b/plugins/typed-messages/test/index.js @@ -1,5 +1,5 @@ import AV from 'leancloud-storage'; -import { APP_ID, APP_KEY } from '../../../test/configs'; +import { APP_ID, APP_KEY, SERVER } from '../../../test/configs'; import './file-message-and-subclasses'; import './location-message'; @@ -7,4 +7,5 @@ import './location-message'; AV.init({ appId: APP_ID, appKey: APP_KEY, + serverURLs: SERVER, }); diff --git a/test/configs.js b/test/configs.js index 975b9ad53..6b2de7a6a 100644 --- a/test/configs.js +++ b/test/configs.js @@ -6,7 +6,7 @@ export const APP_ID = export const APP_KEY = process.env.APP_KEY || 'xhiibo2eiyokjdu2y3kqcb7334rtw4x33zam98buxzkjuq5g'; const defaultServer = isCNApp(APP_ID) - ? 'https://xhiibo2e.lc-cn-n1-shared.com' + ? 'https://anruhhk6.lc-cn-n1-shared.com' : undefined; export const SERVER = process.env.SERVER ? process.env.SERVER : defaultServer; export const EXISTING_ROOM_ID =