mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: update to go 1.20 (#5968)
Co-authored-by: Colin Adler <colin1adler@gmail.com>
This commit is contained in:
@ -30,11 +30,11 @@ func Eventually(ctx context.Context, t testing.TB, condition func(ctx context.Co
|
||||
|
||||
msg := "Eventually timed out"
|
||||
if len(msgAndArgs) > 0 {
|
||||
if m, ok := msgAndArgs[0].(string); ok {
|
||||
msg = fmt.Sprintf(m, msgAndArgs[1:]...)
|
||||
} else {
|
||||
m, ok := msgAndArgs[0].(string)
|
||||
if !ok {
|
||||
panic("developer error: first argument of msgAndArgs must be a string")
|
||||
}
|
||||
msg = fmt.Sprintf(m, msgAndArgs[1:]...)
|
||||
}
|
||||
|
||||
ticker := time.NewTicker(tick)
|
||||
|
Reference in New Issue
Block a user