Skip to content

Commit

Permalink
Reduce timeout period in controller tests
Browse files Browse the repository at this point in the history
there is no need to have such a big timeout for
envtest tests.

Signed-off-by: adrianc <[email protected]>
  • Loading branch information
adrianchiris committed Feb 1, 2024
1 parent 0eb0a14 commit b164b0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/sriovnetworkpoolconfig_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var _ = Describe("Operator", func() {
return err
}
return nil
}, util.APITimeout*3, util.RetryInterval).Should(Succeed())
}, util.APITimeout, util.RetryInterval).Should(Succeed())
})
})
})
4 changes: 2 additions & 2 deletions controllers/sriovoperatorconfig_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ var _ = Describe("Operator", func() {
return nil
}
return daemonSet.Spec.Template.Spec.NodeSelector
}, util.APITimeout*10, util.RetryInterval).Should(Equal(config.Spec.ConfigDaemonNodeSelector))
}, util.APITimeout, util.RetryInterval).Should(Equal(config.Spec.ConfigDaemonNodeSelector))
})

It("should be able to do multiple updates to the node selector of sriov-network-config-daemon", func() {
Expand All @@ -170,7 +170,7 @@ var _ = Describe("Operator", func() {
return nil
}
return daemonSet.Spec.Template.Spec.NodeSelector
}, util.APITimeout*10, util.RetryInterval).Should(Equal(config.Spec.ConfigDaemonNodeSelector))
}, util.APITimeout, util.RetryInterval).Should(Equal(config.Spec.ConfigDaemonNodeSelector))
})

})
Expand Down

0 comments on commit b164b0e

Please sign in to comment.