mirror of
https://github.com/lingble/talos.git
synced 2025-11-02 21:47:47 +00:00
test: stabilize tests by bumping timeouts
Bump timeouts for reset API test as K8s control plane teardown might take 3 minutes on its own. Bump Go Firecracker SDK timeout when talking to firecracker process. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
committed by
talos-bot
parent
18f830f85f
commit
23be80fd96
@@ -86,18 +86,14 @@ func (suite *ResetSuite) TestResetNodeByNode() {
|
||||
|
||||
var uptimeAfter float64
|
||||
|
||||
start := time.Now()
|
||||
|
||||
suite.Require().NoError(retry.Constant(3 * time.Minute).Retry(func() error {
|
||||
since := time.Since(start)
|
||||
|
||||
suite.Require().NoError(retry.Constant(10 * time.Minute).Retry(func() error {
|
||||
uptimeAfter, err = suite.ReadUptime(nodeCtx)
|
||||
if err != nil {
|
||||
// API might be unresponsive during reboot
|
||||
return retry.ExpectedError(err)
|
||||
}
|
||||
|
||||
if uptimeAfter >= uptimeBefore+since.Seconds() {
|
||||
if uptimeAfter >= uptimeBefore {
|
||||
// uptime should go down after Reset, as it reboots the node
|
||||
return retry.ExpectedError(fmt.Errorf("uptime didn't go down: before %f, after %f", uptimeBefore, uptimeAfter))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user