Skip to content

Commit e17969c

Browse files
Merge pull request #2436 from thaJeztah/fix_gofmt
Workaround for gofmt change in Go 1.11
2 parents fb1084d + 383d750 commit e17969c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

content/testsuite/testsuite.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ func checkLabels(ctx context.Context, t *testing.T, cs content.Store) {
367367
labels := map[string]string{
368368
"k1": "v1",
369369
"k2": "v2",
370+
370371
"containerd.io/gc.root": rootTime,
371372
}
372373

@@ -403,6 +404,7 @@ func checkLabels(ctx context.Context, t *testing.T, cs content.Store) {
403404

404405
info.Labels = map[string]string{
405406
"k1": "v1",
407+
406408
"containerd.io/gc.root": rootTime,
407409
}
408410
preUpdate = time.Now()

snapshots/testsuite/testsuite.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ func checkUpdate(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh
684684
expected = map[string]string{
685685
"l1": "updated",
686686
"l3": "v3",
687+
687688
"containerd.io/gc.root": rootTime,
688689
}
689690
st.Labels = map[string]string{
@@ -698,6 +699,7 @@ func checkUpdate(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh
698699

699700
expected = map[string]string{
700701
"l4": "v4",
702+
701703
"containerd.io/gc.root": rootTime,
702704
}
703705
st.Labels = expected

0 commit comments

Comments
 (0)