diff --git a/pkg/specgen/specgen_test.go b/pkg/specgen/specgen_test.go index 8e00bd4b6c..b838d9d30b 100644 --- a/pkg/specgen/specgen_test.go +++ b/pkg/specgen/specgen_test.go @@ -19,7 +19,7 @@ func TestNewSpecGeneratorWithRootfs(t *testing.T) { } for _, args := range tests { val := NewSpecGenerator(args.rootfs, true) - assert.Equal(t, val.RootfsOverlay, args.rootfs) - assert.Equal(t, val.Rootfs, args.rootfs) + assert.Equal(t, val.RootfsOverlay, args.expectedRootfsOverlay) + assert.Equal(t, val.Rootfs, args.expectedRootfs) } }