mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 06:28:42 +01:00
chore: adds tests for store (#2751)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io/fs"
|
||||
|
||||
"net/http"
|
||||
@@ -53,7 +54,7 @@ type handler struct {
|
||||
func CreateServer(clients map[string]docker.Client, content fs.FS, config Config) *http.Server {
|
||||
stores := make(map[string]*docker.ContainerStore)
|
||||
for host, client := range clients {
|
||||
stores[host] = docker.NewContainerStore(client)
|
||||
stores[host] = docker.NewContainerStore(context.Background(), client)
|
||||
}
|
||||
|
||||
handler := &handler{
|
||||
|
||||
Reference in New Issue
Block a user