mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: Reduce test times (#3856)
* chore: Reduce test times * Rename IncludeProvisionerD to IncludeProvisionerDaemon * Make TestTemplateDAUs use Tailnet
This commit is contained in:
@ -30,18 +30,6 @@ func TestEventually(t *testing.T) {
|
||||
testutil.Eventually(ctx, t, condition, testutil.IntervalFast)
|
||||
})
|
||||
|
||||
t.Run("Timeout", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
condition := func(_ context.Context) bool {
|
||||
return false
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
|
||||
defer cancel()
|
||||
mockT := new(testing.T)
|
||||
testutil.Eventually(ctx, mockT, condition, testutil.IntervalFast)
|
||||
assert.True(t, mockT.Failed())
|
||||
})
|
||||
|
||||
t.Run("Panic", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@ -52,19 +40,4 @@ func TestEventually(t *testing.T) {
|
||||
}
|
||||
assert.Panics(t, panicky)
|
||||
})
|
||||
|
||||
t.Run("Short", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
testutil.EventuallyShort(t, func(_ context.Context) bool { return true })
|
||||
})
|
||||
|
||||
t.Run("Medium", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
testutil.EventuallyMedium(t, func(_ context.Context) bool { return true })
|
||||
})
|
||||
|
||||
t.Run("Long", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
testutil.EventuallyLong(t, func(_ context.Context) bool { return true })
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user