reserve enough time for stable tests (#564)

Signed-off-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
Fabian Kammel 2022-11-17 17:30:35 +01:00 committed by GitHub
parent 25c3fcd104
commit feae4a86bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ import (
)
const (
baseWait = 100
baseWait = 300
baseText = "Loading"
)
@ -35,7 +35,8 @@ func TestSpinnerInitialState(t *testing.T) {
assert.Greater(out.Len(), 0)
outStr := out.String()
assert.True(strings.HasPrefix(outStr, hideCursor+generateAllStatesAsString(t, baseText, true)))
prefix := hideCursor + generateAllStatesAsString(t, baseText, true)
assert.True(strings.HasPrefix(outStr, prefix), fmt.Sprintf("\nOutStr: %#v\nPrefix: %#v\n", outStr, prefix))
}
func TestSpinnerFinalState(t *testing.T) {