mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
chore: improves tests
This commit is contained in:
@@ -63,10 +63,8 @@ func TestContainerStore_List(t *testing.T) {
|
||||
Stats: utils.NewRingBuffer[ContainerStat](300),
|
||||
}, nil)
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
t.Cleanup(cancel)
|
||||
collector := &fakeStatsCollector{}
|
||||
store := NewContainerStore(ctx, client, collector, ContainerLabels{})
|
||||
store := NewContainerStore(t.Context(), client, collector, ContainerLabels{})
|
||||
containers, _ := store.ListContainers(ContainerLabels{})
|
||||
|
||||
assert.Equal(t, containers[0].ID, "1234")
|
||||
|
||||
Reference in New Issue
Block a user