Skip to content

Commit

Permalink
chore: delint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed May 29, 2024
1 parent efbc2ec commit 06801c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions chronon_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (suite *ChrononSuite) newFakeTicker(d time.Duration) (Ticker, *FakeClock) {
suite.Require().NotNil(t)
suite.Require().NotNil(t.C())

// a valid ticker's channel should never be signalled when first created
// a valid ticker's channel should never be signaled when first created
suite.requireNoSignal(t.C(), Immediate)

return t, fc
Expand Down Expand Up @@ -163,7 +163,7 @@ func (suite *ChrononSuite) requireSignal(ch interface{}, waitFor time.Duration)
chosen, _, _ := suite.selectOn(ch, waitFor)
suite.Require().Truef(
chosen == 0,
"The channel [%T] should have been signalled",
"The channel [%T] should have been signaled",
ch,
)
}
Expand All @@ -173,7 +173,7 @@ func (suite *ChrononSuite) requireNoSignal(ch interface{}, waitFor time.Duration
chosen, _, _ := suite.selectOn(ch, waitFor)
suite.Require().Truef(
chosen == 1,
"The channel [%T] should NOT have been signalled",
"The channel [%T] should NOT have been signaled",
ch,
)
}
4 changes: 2 additions & 2 deletions fakeClock_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func ExampleFakeClock_NewTicker() {
fmt.Println("tick")
receivedTick <- struct{}{}
case <-ctx.Done():
fmt.Println("code under test has been cancelled")
fmt.Println("code under test has been canceled")
return
}
}
Expand Down Expand Up @@ -129,5 +129,5 @@ func ExampleFakeClock_NewTicker() {
// code under test is now waiting for ticks on 20s
// tick
// tick
// code under test has been cancelled
// code under test has been canceled
}

0 comments on commit 06801c1

Please sign in to comment.