INNER CODE UNIT · Go

cancel

oneclickvirt/ecs · cmd/ecs-canary/main.go:29

		ctx, cancel = context.WithTimeout(ctx, *maxDuration)
	}
	defer cancel()
	started := time.Now()
	var report *api.StructuredReport
	if canaryRunsHardware(config) {
		report = api.RunAllTestsContext(ctx, preCheck, config).Report
	} else {
		report = api.CollectStructuredReport(ctx, preCheck, config, "", started, started)
	}
	finished := time.Now()
	report.FinishedAt = finished
	report.DurationMS = finished.Sub(started).Milliseconds()
	encoded, err := json.Marshal(report)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…