Skip to content

Commit feb9aa7

Browse files
authored
fix(common): remove non-spec fields from FDv2 GoodbyeObject (#1341)
1 parent e5e5ee4 commit feb9aa7

4 files changed

Lines changed: 2 additions & 8 deletions

File tree

packages/shared/common/src/internal/fdv2/proto.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export interface DeleteObject {
6666

6767
export interface GoodbyeObject {
6868
reason: string;
69-
silent: boolean;
70-
catastrophe: boolean;
7169
}
7270

7371
export interface ErrorObject {

packages/shared/sdk-client/__tests__/datasource/fdv2/PollingBase.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ describe('given a goodbye event in the response', () => {
286286
},
287287
{
288288
event: 'goodbye',
289-
data: { reason: 'server-shutdown', silent: false, catastrophe: false },
289+
data: { reason: 'server-shutdown' },
290290
},
291291
]);
292292
const requestor = makeRequestor({

packages/shared/sdk-client/__tests__/datasource/fdv2/PollingInitializer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ it('does not retry on goodbye result', async () => {
174174
},
175175
{
176176
event: 'goodbye',
177-
data: { reason: 'server-shutdown', silent: false, catastrophe: false },
177+
data: { reason: 'server-shutdown' },
178178
},
179179
]);
180180
const requestor: FDv2Requestor = {

packages/shared/sdk-client/__tests__/datasource/fdv2/StreamingFDv2Base.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ it('produces a goodbye status result', async () => {
125125

126126
simulateEvent(mockEventSource, 'goodbye', {
127127
reason: 'server restarting',
128-
silent: false,
129-
catastrophe: false,
130128
});
131129

132130
const result = await base.takeResult();
@@ -416,8 +414,6 @@ it('produces results in order', async () => {
416414

417415
simulateEvent(mockEventSource, 'goodbye', {
418416
reason: 'bye',
419-
silent: false,
420-
catastrophe: false,
421417
});
422418

423419
const r1 = await base.takeResult();

0 commit comments

Comments
 (0)