Skip to content

Commit

Permalink
Add sleep for failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dilanSachi committed Sep 7, 2023
1 parent e58d410 commit 45dec4a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// under the License.

import ballerina/test;
import ballerina/lang.runtime;

@test:Config {enable: true}
function testAnonymousService() returns error? {
Expand All @@ -29,6 +30,7 @@ function testAnonymousService() returns error? {

@test:Config {dependsOn: [testAnonymousService], enable: true}
function testAnonymousServiceMultipleTimes() returns error? {
runtime:sleep(2);
check ep20.attach(AnonService1, "AnonService1");
check ep20.'start();
check ep20.'start();
Expand Down

0 comments on commit 45dec4a

Please sign in to comment.