RG1: the bounded steps' finding test joins their one test function
Builds: design 47 H2 §819
This commit is contained in:
@@ -13,6 +13,7 @@ func TestTheBoundedSteps(t *testing.T) {
|
||||
t.Run("a hung step answers with its name", hungStepAnswersWithItsName)
|
||||
t.Run("a given-up step says when its call ended", givenUpStepSaysWhenItsCallEnded)
|
||||
t.Run("a deleted chunk is purged", deletedChunkIsPurged)
|
||||
t.Run("a finding is said off the path", findingIsSaidOffThePath)
|
||||
}
|
||||
|
||||
// A bus operation that never answers becomes an error naming its step, within the bound.
|
||||
@@ -59,7 +60,7 @@ func givenUpStepSaysWhenItsCallEnded(t *testing.T) {
|
||||
}
|
||||
|
||||
// The finding is said off the caller's path: a writer that never answers does not hold the call that says it.
|
||||
func TestAFindingIsSaidOffThePath(t *testing.T) {
|
||||
func findingIsSaidOffThePath(t *testing.T) {
|
||||
block := make(chan struct{})
|
||||
defer close(block)
|
||||
say := boundedFinding(func(string, string, string, bool) { <-block })
|
||||
|
||||
Reference in New Issue
Block a user