Skip to content

Commit 8c3a2e8

Browse files
authored
Add missing fixture to clean gpg_key table (#2494)
* Add missing fixture to clean gpg_key table * Fix possible too fast request execution in timetracker start/stop test
1 parent 9bdbfbf commit 8c3a2e8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

integrations/timetracking_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"net/http"
99
"path"
1010
"testing"
11+
"time"
1112

1213
"github.com/stretchr/testify/assert"
1314
)
@@ -56,6 +57,9 @@ func testViewTimetrackingControls(t *testing.T, session *TestSession, user, repo
5657
htmlDoc.AssertElement(t, ".timetrack .stop-cancel .stop", true)
5758
htmlDoc.AssertElement(t, ".timetrack .stop-cancel .cancel", true)
5859

60+
// Sleep for 1 second to not get wrong order for stopping timer
61+
time.Sleep(time.Second)
62+
5963
req = NewRequestWithValues(t, "POST", path.Join(user, repo, "issues", issue, "times", "stopwatch", "toggle"), map[string]string{
6064
"_csrf": htmlDoc.GetCSRF(),
6165
})

models/fixtures/gpg_key.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[] # empty

0 commit comments

Comments
 (0)