Skip to content

Commit

Permalink
rivertest.RequireNotInsertedTx: fix incorrect description (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgentry authored Aug 8, 2024
1 parent ab7f616 commit 159ffc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rivertest/rivertest.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,8 @@ func requireNotInserted[TDriver riverdriver.Driver[TTx], TTx any, TArgs river.Jo
}
}

// RequireInsertedTx is a test helper that verifies that a job of the given kind
// was inserted for work, failing the test if it wasn't. If found, the inserted
// job is returned so that further assertions can be made against it.
// RequireNotInsertedTx is a test helper that verifies that a job of the given
// kind was not inserted for work, failing the test if one was.
//
// job := RequireInsertedTx[*riverpgxv5.Driver](ctx, t, tx, &Job1Args{}, nil)
//
Expand Down

0 comments on commit 159ffc6

Please sign in to comment.