diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-03-07 15:06:14 +1030 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-03-15 00:20:51 +0000 |
commit | c5ae81e5a7dfa830456dcbfd806b5d11cba51fdb (patch) | |
tree | 5c84e7d3ef9499fc02f6c1795064cb157a6f7839 | |
parent | 9628122e69c19d52e694b48f48a446a39b01bf5f (diff) | |
download | phosphor-networkd-c5ae81e5a7dfa830456dcbfd806b5d11cba51fdb.tar.gz phosphor-networkd-c5ae81e5a7dfa830456dcbfd806b5d11cba51fdb.zip |
test_rtnetlink: Increase interations in WithSingleInterface
We were hitting test failures caused by
EXPECT_EQ(true, isInterfaceAdded("igb5"));
at the end of the WithSingleInterface case. There appears to be a race
condition between the netlink handling and the timer expiry, so
increment the number of retries for test stability.
Change-Id: I6cd2e4e95ee4d183466c73fa8a36a5580f566227
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r-- | test/test_rtnetlink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_rtnetlink.cpp b/test/test_rtnetlink.cpp index 71e5443..79d9547 100644 --- a/test/test_rtnetlink.cpp +++ b/test/test_rtnetlink.cpp @@ -122,7 +122,7 @@ TEST_F(TestRtNetlink, WithSingleInterface) // Send the request send(smartSock(), nlMsg, nlMsg->nlmsg_len, 0); - int i = 2; + int i = 3; while (i--) { //wait for timer to expire |