GebConfig waiting presets ignored

133 views
Skip to first unread message

Marko Pareigis

unread,
Aug 29, 2017, 8:00:52 AM8/29/17
to Geb User Mailing List
I'm trying to use presets for waitFor etc.
In my GebConfig i ave this

waiting {
presets = {
slow { timeout = 15 }
quick { timeout = 1 }
}
timeout = 7
retryInterval = 0.5
}

In my Spec I use this to tests the config:
waitFor("quick") { false }

 Yes, this will always wayt the entire time and then fail.

But: it wait for 7 instead of 1 second in effect ignoring my preset.

What am I missing? Probably something obvious but i can't seem to figure it out :-)

The rest of the config is read (like driverbaseUrl etc).

Thanks in advance
marko
 

Marko Pareigis

unread,
Aug 29, 2017, 9:45:09 AM8/29/17
to geb-...@googlegroups.com
OMG how embarrasing .... 'presets = {' was the only problem I had ... why did I put the '=' in there ;-)

--
You received this message because you are subscribed to a topic in the Google Groups "Geb User Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geb-user/vJ9JtJePtZQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/53e7d78e-ad0e-452b-8196-76d03b30aefd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcin Erdmann

unread,
Aug 30, 2017, 5:11:17 PM8/30/17
to geb-...@googlegroups.com
No worries, I'm glad you figured it out on your own. :)

On Tue, 29 Aug 2017 at 14:45, 'Marko Pareigis' via Geb User Mailing List <geb-...@googlegroups.com> wrote:
OMG how embarrasing .... 'presets = {' was the only problem I had ... why did I put the '=' in there ;-)

2017-08-29 14:00 GMT+02:00 'Marko Pareigis' via Geb User Mailing List <geb-...@googlegroups.com>:
I'm trying to use presets for waitFor etc.
In my GebConfig i ave this

waiting {
presets = {
slow { timeout = 15 }
quick { timeout = 1 }
}
timeout = 7
retryInterval = 0.5
}

In my Spec I use this to tests the config:
waitFor("quick") { false }

 Yes, this will always wayt the entire time and then fail.

But: it wait for 7 instead of 1 second in effect ignoring my preset.

What am I missing? Probably something obvious but i can't seem to figure it out :-)

The rest of the config is read (like driverbaseUrl etc).

Thanks in advance
marko
 

--
You received this message because you are subscribed to a topic in the Google Groups "Geb User Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geb-user/vJ9JtJePtZQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geb-user+u...@googlegroups.com.

To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/53e7d78e-ad0e-452b-8196-76d03b30aefd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.

To post to this group, send email to geb-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages