chore: Reduce test times (#3856)

* chore: Reduce test times

* Rename IncludeProvisionerD to IncludeProvisionerDaemon

* Make  TestTemplateDAUs use Tailnet
This commit is contained in:
Kyle Carberry
2022-09-04 11:28:09 -05:00
committed by GitHub
parent 271d075667
commit 67c4605370
38 changed files with 204 additions and 289 deletions

View File

@ -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 })
})
}