Skip to content

Commit

Permalink
Skip large sized bloom filter golden tests (#7537)
Browse files Browse the repository at this point in the history
  • Loading branch information
milaGGL authored Aug 8, 2023
1 parent 6c7d079 commit f73b24d
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions packages/firestore/test/unit/remote/bloom_filter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,25 +198,38 @@ describe('BloomFilter', () => {
TEST_DATA.count5000Rate0001TestResult
);
});
it('mightContain result for 50000 documents with 1 false positive rate', () => {

// Skip large sized golden tests as they slow down unit test runs without significantly
// improving coverage compared to other golden tests.
// These tests can be run manually if needed.
// eslint-disable-next-line no-restricted-properties
it.skip('mightContain result for 50000 documents with 1 false positive rate', () => {
testBloomFilterAgainstExpectedResult(
TEST_DATA.count50000Rate1TestData,
TEST_DATA.count50000Rate1TestResult
);
});
it('mightContain result for 50000 documents with 0.01 false positive rate', () => {
testBloomFilterAgainstExpectedResult(
TEST_DATA.count50000Rate01TestData,
TEST_DATA.count50000Rate01TestResult
);
//Extend default timeout(2000)
}).timeout(10_000);
it('mightContain result for 50000 documents with 0.0001 false positive rate', () => {
testBloomFilterAgainstExpectedResult(
TEST_DATA.count50000Rate0001TestData,
TEST_DATA.count50000Rate0001TestResult
);
//Extend default timeout(2000)
}).timeout(10_000);
// eslint-disable-next-line no-restricted-properties
it.skip(
'mightContain result for 50000 documents with 0.01 false positive rate',
() => {
testBloomFilterAgainstExpectedResult(
TEST_DATA.count50000Rate01TestData,
TEST_DATA.count50000Rate01TestResult
);
// Extend the default timeout to 10000ms
}
).timeout(10_000);
// eslint-disable-next-line no-restricted-properties
it.skip(
'mightContain result for 50000 documents with 0.0001 false positive rate',
() => {
testBloomFilterAgainstExpectedResult(
TEST_DATA.count50000Rate0001TestData,
TEST_DATA.count50000Rate0001TestResult
);
// Extend the default timeout to 10000ms
}
).timeout(10_000);
});
});

0 comments on commit f73b24d

Please sign in to comment.