Skip to content

Commit 0cbde47

Browse files
committed
test: retain reposync queue start signals
1 parent b38c746 commit 0cbde47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/app/reposync/queue_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ func TestNewSyncQueueWithOptions_NilContextDefaultsToBackground(t *testing.T) {
491491
}
492492

493493
func TestSyncQueue_AddRejectsWhenMaxTrackedReposExceeded(t *testing.T) {
494-
started := make(chan struct{})
494+
started := make(chan struct{}, 1)
495495
release := make(chan struct{})
496496
handler := func(_ context.Context, repoFullName, cloneURL, branch string) error {
497497
select {
@@ -526,7 +526,7 @@ func TestSyncQueue_AddRejectsWhenMaxTrackedReposExceeded(t *testing.T) {
526526
}
527527

528528
func TestSyncQueue_AddAllowsExistingRepoUpdateWhenAtCapacity(t *testing.T) {
529-
started := make(chan struct{})
529+
started := make(chan struct{}, 1)
530530
release := make(chan struct{})
531531
urls := make(chan string, 2)
532532
handler := func(_ context.Context, repoFullName, cloneURL, branch string) error {

0 commit comments

Comments
 (0)