mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-03 06:24:21 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user