mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: Reduce test times (#3856)
* chore: Reduce test times * Rename IncludeProvisionerD to IncludeProvisionerDaemon * Make TestTemplateDAUs use Tailnet
This commit is contained in:
@ -44,27 +44,3 @@ func Eventually(ctx context.Context, t testing.TB, condition func(context.Contex
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// EventuallyShort is a convenience function that runs Eventually with
|
||||
// IntervalFast and times out after WaitShort.
|
||||
func EventuallyShort(t testing.TB, condition func(context.Context) bool) bool {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), WaitShort)
|
||||
defer cancel()
|
||||
return Eventually(ctx, t, condition, IntervalFast)
|
||||
}
|
||||
|
||||
// EventuallyMedium is a convenience function that runs Eventually with
|
||||
// IntervalMedium and times out after WaitMedium.
|
||||
func EventuallyMedium(t testing.TB, condition func(context.Context) bool) bool {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), WaitMedium)
|
||||
defer cancel()
|
||||
return Eventually(ctx, t, condition, IntervalMedium)
|
||||
}
|
||||
|
||||
// EventuallyLong is a convenience function that runs Eventually with
|
||||
// IntervalSlow and times out after WaitLong.
|
||||
func EventuallyLong(t testing.TB, condition func(context.Context) bool) bool {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), WaitLong)
|
||||
defer cancel()
|
||||
return Eventually(ctx, t, condition, IntervalSlow)
|
||||
}
|
||||
|
Reference in New Issue
Block a user