Skip to content

Commit a1720ec

Browse files
committed
Make unit tests more stable
1 parent fa82fb4 commit a1720ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

slack-app-backend/src/test/java/test_locally/app_backend/events/servlet/EventsApiTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void message() throws Exception {
123123
HttpTester.Response response3 = HttpTester.parseResponse(tester.getResponses(request.generate()));
124124

125125
// wait for the async execution
126-
Thread.sleep(200L);
126+
Thread.sleep(1000L);
127127

128128
assertThat(response1.getStatus(), is(equalTo(200)));
129129
assertThat(response2.getStatus(), is(equalTo(200)));
@@ -149,7 +149,7 @@ public void app_uninstalled() throws Exception {
149149
HttpTester.Response response = HttpTester.parseResponse(tester.getResponses(request.generate()));
150150

151151
// wait for the async execution
152-
Thread.sleep(200L);
152+
Thread.sleep(1000L);
153153

154154
assertThat(response.getStatus(), is(equalTo(200)));
155155
assertThat(appUninstallsCalls.get(), is(1));
@@ -173,7 +173,7 @@ public void goodbye() throws Exception {
173173
HttpTester.Response response = HttpTester.parseResponse(tester.getResponses(request.generate()));
174174

175175
// wait for the async execution
176-
Thread.sleep(200L);
176+
Thread.sleep(1000L);
177177

178178
assertThat(response.getStatus(), is(equalTo(200)));
179179
assertThat(goodbyeCalls.get(), is(1));
@@ -197,7 +197,7 @@ public void invalid() throws Exception {
197197
HttpTester.Response response = HttpTester.parseResponse(tester.getResponses(request.generate()));
198198

199199
// wait for the async execution
200-
Thread.sleep(200L);
200+
Thread.sleep(1000L);
201201

202202
assertThat(response.getStatus(), is(equalTo(401)));
203203
assertThat(goodbyeCalls.get(), is(0));

0 commit comments

Comments
 (0)