Skip to content

Commit

Permalink
Keep site record controller channel opened on podman (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgiorgetti authored Dec 14, 2023
1 parent c841924 commit 8c6376f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/flow/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ func (c *siteRecordController) Start(stopCh <-chan struct{}) <-chan *SiteRecord
updates := make(chan *SiteRecord, 1)

go func() {
defer close(updates)
updates <- c.Record()

if c.Platform != string(types.PlatformKubernetes) {
Expand Down
3 changes: 0 additions & 3 deletions pkg/flow/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ func TestSiteController(t *testing.T) {
assert.Equal(t, rec.StartTime, uint64(1_111_111))
assert.Equal(t, *rec.Policy, Disabled)
},
func(t *testing.T, rec *SiteRecord, ok bool) {
assert.Equal(t, ok, false) // expect closed
},
},
waitTimeout: time.Millisecond * 500,
},
Expand Down

0 comments on commit 8c6376f

Please sign in to comment.