mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
reserve enough time for stable tests (#564)
Signed-off-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
parent
25c3fcd104
commit
feae4a86bc
@ -17,7 +17,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
baseWait = 100
|
baseWait = 300
|
||||||
baseText = "Loading"
|
baseText = "Loading"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -35,7 +35,8 @@ func TestSpinnerInitialState(t *testing.T) {
|
|||||||
assert.Greater(out.Len(), 0)
|
assert.Greater(out.Len(), 0)
|
||||||
|
|
||||||
outStr := out.String()
|
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) {
|
func TestSpinnerFinalState(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user