Skip to content

Commit

Permalink
Testing tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
  • Loading branch information
derekperkins authored and puerco committed Jul 23, 2024
1 parent e094420 commit 375dc68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions throttler/throttler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestThrottleWithErrors(t *testing.T) {
th.Throttle()
}
if len(th.Errs()) != totalJobs/2 {
t.Fatal()
t.Fatal("The wrong number of errors were returned")
}
if th.Err() != nil {
fmt.Println("err:", th.Err())
Expand All @@ -119,7 +119,7 @@ func TestThrottleWithErrors(t *testing.T) {
func TestThrottlePanic(t *testing.T) {
defer func() {
if r := recover(); r == nil {
t.Fatal()
t.Fatal("Test failed to panic")
}
}()
New(0, 100)
Expand Down

0 comments on commit 375dc68

Please sign in to comment.