Merge pull request #2436 from thaJeztah/fix_gofmt
Workaround for gofmt change in Go 1.11
This commit is contained in:
commit
e17969caad
@ -367,6 +367,7 @@ func checkLabels(ctx context.Context, t *testing.T, cs content.Store) {
|
|||||||
labels := map[string]string{
|
labels := map[string]string{
|
||||||
"k1": "v1",
|
"k1": "v1",
|
||||||
"k2": "v2",
|
"k2": "v2",
|
||||||
|
|
||||||
"containerd.io/gc.root": rootTime,
|
"containerd.io/gc.root": rootTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,6 +404,7 @@ func checkLabels(ctx context.Context, t *testing.T, cs content.Store) {
|
|||||||
|
|
||||||
info.Labels = map[string]string{
|
info.Labels = map[string]string{
|
||||||
"k1": "v1",
|
"k1": "v1",
|
||||||
|
|
||||||
"containerd.io/gc.root": rootTime,
|
"containerd.io/gc.root": rootTime,
|
||||||
}
|
}
|
||||||
preUpdate = time.Now()
|
preUpdate = time.Now()
|
||||||
|
@ -684,6 +684,7 @@ func checkUpdate(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh
|
|||||||
expected = map[string]string{
|
expected = map[string]string{
|
||||||
"l1": "updated",
|
"l1": "updated",
|
||||||
"l3": "v3",
|
"l3": "v3",
|
||||||
|
|
||||||
"containerd.io/gc.root": rootTime,
|
"containerd.io/gc.root": rootTime,
|
||||||
}
|
}
|
||||||
st.Labels = map[string]string{
|
st.Labels = map[string]string{
|
||||||
@ -698,6 +699,7 @@ func checkUpdate(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh
|
|||||||
|
|
||||||
expected = map[string]string{
|
expected = map[string]string{
|
||||||
"l4": "v4",
|
"l4": "v4",
|
||||||
|
|
||||||
"containerd.io/gc.root": rootTime,
|
"containerd.io/gc.root": rootTime,
|
||||||
}
|
}
|
||||||
st.Labels = expected
|
st.Labels = expected
|
||||||
|
Loading…
Reference in New Issue
Block a user