stoptest

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package stoptest checks Client.StopAndCancel on a client of any driver, for the tests of each.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run[TTx any](t *testing.T, newDriver func(t *testing.T) driver.Driver[TTx])

Run checks that StopAndCancel cancels a running job at once, with ErrClientStopped as its context's cause, records the attempt's error, keeps its log marked Interrupted, and gives the job its attempt back, its last one too, so another client runs it again and completes it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL