MCPcopy Create free account
hub / github.com/coder/coder / Cleanup

Method Cleanup

scaletest/notifications/run.go:181–190  ·  view source on GitHub ↗
(ctx context.Context, id string, logs io.Writer)

Source from the content-addressed store, hash-verified

179}
180
181func (r *Runner) Cleanup(ctx context.Context, id string, logs io.Writer) error {
182 if r.createUserRunner != nil {
183 _, _ = fmt.Fprintln(logs, "Cleaning up user...")
184 if err := r.createUserRunner.Cleanup(ctx, id, logs); err != nil {
185 return xerrors.Errorf("cleanup user: %w", err)
186 }
187 }
188
189 return nil
190}
191
192const (
193 WebsocketNotificationReceiptTimeMetric = "notification_websocket_receipt_time"

Callers 2

TestRunFunction · 0.95
TestRunWithSMTPFunction · 0.95

Calls 2

CleanupMethod · 0.65
ErrorfMethod · 0.45

Tested by 2

TestRunFunction · 0.76
TestRunWithSMTPFunction · 0.76