Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
havardpe committed Dec 4, 2024
1 parent fa47582 commit 8c67a04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/go/internal/vespa/document/throttler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ func TestThrottler(t *testing.T) {
t.Errorf("got TargetInflight() = %d, but want %d", got, want)
}
}

func TestStaticThrottler(t *testing.T) {
var tr Throttler = &staticThrottler{369}
if got, want := tr.TargetInflight(), int64(369); got != want {
t.Errorf("got TargetInflight() = %d, but want %d", got, want)
}
}

0 comments on commit 8c67a04

Please sign in to comment.