Skip to content

Commit 2a0851c

Browse files
Polishing
1 parent f44e307 commit 2a0851c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/evaluator/matchers/__tests__/rbsegment.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ const STORED_RBSEGMENTS: Record<string, IRBSegment> = {
9595
changeNumber: 123,
9696
status: 'ACTIVE',
9797
excluded: { // @ts-ignore
98-
keys: null,
99-
segments: []
98+
keys: null, // @ts-ignore
99+
segments: null,
100100
},
101101
conditions: [{
102102
matcherGroup: {

src/services/splitHttpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function splitHttpClientFactory(settings: ISettings, { getOptions, getFet
4646
// https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Checking_that_the_fetch_was_successful
4747
.then(response => {
4848
if (!response.ok) {
49-
// `text()` promise might not settle in some implementations and cases (e.g. no content)
49+
// timeout after 100ms because `text()` promise doesn't settle in some implementations and cases (e.g. no content)
5050
return timeout(100, response.text()).then(message => Promise.reject({ response, message }), () => Promise.reject({ response }));
5151
}
5252
latencyTracker();

0 commit comments

Comments
 (0)