Skip to content

Commit 6b133e7

Browse files
chore: ignore last commit, misread the comment
1 parent ae7fca9 commit 6b133e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

coderd/autobuild/lifecycle_executor_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,16 @@ func TestMultipleLifecycleExecutors(t *testing.T) {
111111
// Get both clients to perform a lifecycle execution tick
112112
next := sched.Next(workspace.LatestBuild.CreatedAt)
113113

114+
startCh := make(chan struct{})
114115
go func() {
116+
<-startCh
115117
tickCh <- next
118+
}()
119+
go func() {
120+
<-startCh
116121
tickCh <- next
117-
close(tickCh)
118122
}()
123+
close(startCh)
119124

120125
// Now we want to check the stats for both clients
121126
statsA := <-statsChA

0 commit comments

Comments
 (0)