Skip to content

Commit

Permalink
Add delay to agent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aalda committed Feb 25, 2019
1 parent 5c60658 commit 98e69b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/e2e/agents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@ func TestAgents(t *testing.T) {
bAuditor, aAuditor := setupAuditor(0, t)
bMonitor, aMonitor := setupMonitor(0, t)
bPublisher, aPublisher := setupPublisher(0, t)
delay := func(t *testing.T) {
time.Sleep(2 * time.Second)
}

scenario, let := scope.Scope(t,
merge(bServer, bStore, bPublisher, bAuditor, bMonitor),
merge(aServer, aPublisher, aAuditor, aMonitor, aStore),
merge(aServer, aPublisher, aAuditor, aMonitor, aStore, delay),
)

event := rand.RandomString(10)
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func merge(list ...scope.TestF) scope.TestF {
for _, elem := range list {
elem(t)
}
// time.Sleep(2 * time.Second)
}
}

Expand Down

0 comments on commit 98e69b0

Please sign in to comment.