Merge pull request #2720 from Kvasscn/kata_dev_virtiofsd_ctx

virtiofs: fix error report in TestVirtiofsdStart when go test running
This commit is contained in:
Fabiano Fidêncio
2021-09-25 12:17:00 +02:00
committed by GitHub

View File

@@ -70,7 +70,7 @@ func TestVirtiofsdStart(t *testing.T) {
PID: tt.fields.PID,
ctx: tt.fields.ctx,
}
var ctx context.Context
ctx := context.Background()
_, err := v.Start(ctx, nil)
if (err != nil) != tt.wantErr {
t.Errorf("virtiofsd.Start() error = %v, wantErr %v", err, tt.wantErr)