Skip to content

Commit

Permalink
Update mock
Browse files Browse the repository at this point in the history
  • Loading branch information
zalegrala committed Aug 14, 2024
1 parent b3a48a2 commit 67ba83b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tempodb/compactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (m *mockJobSharder) Owns(string) bool { return true }

type mockOverrides struct {
blockRetention time.Duration
disabled bool
maxBytesPerTrace int
maxCompactionWindow time.Duration
}
Expand All @@ -56,6 +57,10 @@ func (m *mockOverrides) BlockRetentionForTenant(_ string) time.Duration {
return m.blockRetention
}

func (m *mockOverrides) DisabledForTenant(_ string) bool {
return m.disabled
}

func (m *mockOverrides) MaxBytesPerTraceForTenant(_ string) int {
return m.maxBytesPerTrace
}
Expand Down

0 comments on commit 67ba83b

Please sign in to comment.