Skip to content

Commit b8d0761

Browse files
committed
Fix web-impl tests
1 parent e44617b commit b8d0761

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

toolbox/fdc3-for-web/fdc3-web-impl/test/features/heartbeat.feature

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@ Feature: Heartbeat Messages Between Apps and Server
1010
Scenario: App Responds to heartbeats
1111
When "libraryApp/a1" is opened with connection id "a1"
1212
And "a1" sends validate
13-
And we wait for a period of "500" ms
13+
And we wait for a period of "400" ms
1414
And "libraryApp/a1" sends a heartbeat response to eventUuid "a1_1"
15-
And we wait for a period of "500" ms
15+
And we wait for a period of "400" ms
1616
And "libraryApp/a1" sends a heartbeat response to eventUuid "a1_2"
17-
And we wait for a period of "500" ms
17+
And we wait for a period of "400" ms
1818
And "libraryApp/a1" sends a heartbeat response to eventUuid "a1_3"
19-
And we wait for a period of "500" ms
19+
And we wait for a period of "400" ms
2020
And "libraryApp/a1" sends a heartbeat response to eventUuid "a1_4"
21-
And we wait for a period of "500" ms
22-
And "libraryApp/a1" sends a heartbeat response to eventUuid "a1_5"
23-
And we wait for a period of "500" ms
21+
And we wait for a period of "400" ms
2422
Then I test the liveness of "libraryApp/a1"
2523
Then "{result}" is true
2624
And messaging will have outgoing posts
@@ -38,11 +36,11 @@ Feature: Heartbeat Messages Between Apps and Server
3836
| a1 | Connected |
3937

4038
Scenario: App Doesn't Respond to heartbeats
41-
Apps are considered dead if they don't respond to a heartbeat request within 2 seconds
39+
Apps are considered dead if they don't respond to a heartbeat request within the timeout period
4240

4341
When "libraryApp/a1" is opened with connection id "a1"
4442
And "a1" sends validate
45-
And we wait for a period of "3000" ms
43+
And we wait for a period of "3500" ms
4644
Then I test the liveness of "libraryApp/a1"
4745
Then "{result}" is false
4846
And messaging will have outgoing posts
@@ -51,6 +49,12 @@ Feature: Heartbeat Messages Between Apps and Server
5149
| heartbeatEvent | a1 | libraryApp |
5250
| heartbeatEvent | a1 | libraryApp |
5351
| heartbeatEvent | a1 | libraryApp |
52+
| heartbeatEvent | a1 | libraryApp |
53+
| heartbeatEvent | a1 | libraryApp |
54+
| heartbeatEvent | a1 | libraryApp |
55+
| heartbeatEvent | a1 | libraryApp |
56+
| heartbeatEvent | a1 | libraryApp |
57+
| heartbeatEvent | a1 | libraryApp |
5458
And I shutdown the server
5559
And I get the heartbeat times
5660
Then "{result}" is empty

toolbox/fdc3-for-web/fdc3-web-impl/test/step-definitions/generic.steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Given('A newly instantiated FDC3 Server with heartbeat checking', (world: Custom
128128
const d = new BasicDirectory(apps);
129129

130130
world.sc = new TestServerContext(world);
131-
world.server = new DefaultFDC3Server(world.sc, d, defaultChannels(), true, 2000, 2000);
131+
world.server = new DefaultFDC3Server(world.sc, d, defaultChannels(), true, 2000, 1000);
132132
});
133133

134134
When('I shutdown the server', (world: CustomWorld) => {

0 commit comments

Comments
 (0)