add more waits to tests with logs (#59)

This commit is contained in:
David Dollar 2019-12-23 19:21:47 -05:00 committed by GitHub
parent 69374622db
commit 27b329d4c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ func TestScaleUpdateError(t *testing.T) {
}
func TestScaleUpdateClassic(t *testing.T) {
testClient(t, func(e *cli.Engine, i *mocksdk.Interface) {
testClientWait(t, 50*time.Millisecond, func(e *cli.Engine, i *mocksdk.Interface) {
i.On("SystemGet").Return(fxSystemClassic(), nil)
i.On("FormationUpdate", "app1", "web", structs.ServiceUpdateOptions{Count: options.Int(3), Cpu: options.Int(5), Memory: options.Int(10)}).Return(nil)
i.On("AppGet", "app1").Return(fxAppUpdating(), nil).Twice()