mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[tests][android][perf] add delay to work around detox relaunch issue
This commit is contained in:
@@ -2,11 +2,14 @@ describe('perf()', () => {
|
||||
describe('setPerformanceCollectionEnabled()', () => {
|
||||
it('true', async () => {
|
||||
await firebase.perf().setPerformanceCollectionEnabled(true);
|
||||
await sleep(2000);
|
||||
});
|
||||
|
||||
it('false', async () => {
|
||||
await firebase.perf().setPerformanceCollectionEnabled(false);
|
||||
await sleep(2000);
|
||||
await firebase.perf().setPerformanceCollectionEnabled(true);
|
||||
await sleep(2000);
|
||||
await device.launchApp({ newInstance: true });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user